jd2007 Posted September 29, 2007 Share Posted September 29, 2007 $contents = file_get_contents("http://www.w3schools.com/php/php_ref_string.asp"); echo $contents; ??? Quote Link to comment https://forums.phpfreaks.com/topic/71154-why-nothing-gets-displayed-when-i-use-file_get_contents-below/ Share on other sites More sharing options...
rarebit Posted September 29, 2007 Share Posted September 29, 2007 Someone asked this yesterday, I checked their code and it worked fine for me. I referred them to the manual to look at the timeoutout settings in php.ini (mot sure though). However upon reflection, a problem on the paypal site the other day was that certain host don't allow external connections, so you might want to query your host. You can always check your code by running it from home, it should work! http://uk3.php.net/manual/en/function.file-get-contents.php Quote Link to comment https://forums.phpfreaks.com/topic/71154-why-nothing-gets-displayed-when-i-use-file_get_contents-below/#findComment-357874 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.