How to include file from external domain
Posted: Fri Jul 20, 2007 4:57 am
Hi
I want to include file from external domain.
for example i have 2 domains http://www.hiox.com and http://www.withfriendship.com i have a php script on example.com which i want to include in another script on example2.com.
I tried to just simply include the script:
include('http://www.hiox.com/testscript.php');
but this does not seem to work. When I checked the manual it said that this is possible as long as the php version is greater than 4.3.0 (which mine is on both domains) and allow_url_fopen is enabled ehich it is on both domains.
am i missing something? or is there another way of doing this?
I want to include file from external domain.
for example i have 2 domains http://www.hiox.com and http://www.withfriendship.com i have a php script on example.com which i want to include in another script on example2.com.
I tried to just simply include the script:
include('http://www.hiox.com/testscript.php');
but this does not seem to work. When I checked the manual it said that this is possible as long as the php version is greater than 4.3.0 (which mine is on both domains) and allow_url_fopen is enabled ehich it is on both domains.
am i missing something? or is there another way of doing this?