Posted by J.O. Aho on 02/01/07 07:31
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
Navigation:
[Reply to this message]
|