Re: file_get_contents ($file) works -- file_get_contents ($url) returns false

From: Date: Wed, 09 Dec 2009 15:03:52 +0000
Subject: Re: file_get_contents ($file) works -- file_get_contents ($url) returns false
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-300333@lists.php.net to get a copy of this message
On Wed, Dec 9, 2009 at 8:02 AM, LinuxManMikeC <linuxmanmikec@gmail.com> wrote: > On Wed, Dec 9, 2009 at 6:45 AM, René Fournier <m5@renefournier.com> wrote: >> Strange problem I'm having on Mac OS X Server 10.6 running PHP 5.3. Any call of >> file_get_contents() on a local file works fine -- the file is read and returned. But any call of >> file_get_contents on a url -- any url, local or remote -- always returns false. >> >> var_dump (file_get_contents ('http://www.google.com/'h¼²¡eú,6œ >> Žö6œ)); >> >> bool(false) >> >> I've checked php.ini, and the obvious seems okay: >> >>        allow_url_fopen => On => On >> >> Any ideas? >> >> ...Rene > > > http://us2.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen > "I've checked php.ini" Right, must remember not to reply to stuff till I'm awake. :-D

« previous php.general (#300333) next »