- Code: Select all
<?php echo file_get_contents('http://www.otherwebsiteaddress.com/website_page); ?>
but it's just not working - can anyone help please?
Thanks.
Chris
<?php echo file_get_contents('http://www.otherwebsiteaddress.com/website_page); ?>



topdown wrote:Whats not working?
It should return the entire web page.
Maybe its blocked on your host?
do an if(function_exists('file_get_contents')){ echo 'Function exists';}
if(function_exists('file_get_contents')){ echo 'Function exists';}












Obsidian wrote:...If you're using this to include PHP code from a remote source, please get rid of your server because, as topdown put it, it is a massive security issue. You might as well just setup public FTP to your site and allow anyone to change any files you have.




Users browsing this forum: No registered users and 2 guests