Re: file_get_contents ($file) works -- file_get_contents ($url) returns false
| From: | (Cafer Şimşek) | Date: | Mon, 14 Dec 2009 15:03:06 +0000 |
| Subject: | Re: file_get_contents ($file) works -- file_get_contents ($url) returns false | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-300489@lists.php.net to get a copy of this message | ||
René Fournier <m5@renefournier.com> writes:
> On 2009-12-14, at 10:44 PM, Cafer Şimşek wrote:
>
>> René Fournier <m5@renefournier.com> writes:
>>
>>> 4. as per php.ini, allow_url_fopen On
>>
>> Look at from phpinfo() the settings is already "On".
>
> Yes, I know.
>
> Which is why it's odd that the function fails on URLs.
try to get url content from any browser or (if you use Linux / Unix)
curl.
--
Cafer Şimşek
DEV Staff Leader
http://pazar.com/