You are here: Re: filesize() not reading http pages « All PHP « IT news, forums, messages
Re: filesize() not reading http pages

Posted by Eric Layman on 02/02/07 00:21

HI,

Thakns for the reply.

I have checked this setting in my php.ini

allow_url_fopen = On

It is ON be default.

"J.O. Aho" <user@example.net> wrote in message
news:52djb1F1ngqghU1@mid.individual.net...
> Eric Layman wrote:
>> Hi,
>>
>> According to the PHP documentation:
>>
>> it stated that as of php5, filesize supports the reading of remote html
>> files:
>>
>> http://php.net/manual/en/function.filesize.php
>>
>> But I have tried the following:
>> echo filesize("http://www.yahoo.com/");
>>
>> It returned me this error:
>>
>> Warning: filesize() [function.filesize]: stat failed for..blah blah
>>
>> Anyone have this same problem?
>>
>> Yes. Im using PHP5
>
> Maybe your php has disable the remote file reading, check your php.ini.
>
> --
>
> //Aho



Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация