Re: note 9476 added to filesize
| From: | J. M. Castagnetto | Date: | Mon, 06 Nov 2000 12:35:05 +0000 |
| Subject: | Re: note 9476 added to filesize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7444@lists.php.net to get a copy of this message | ||
Reading a directory does not automagically makes all
the othe filesystem functions *know* what dir has been
read. This is problem in your coding logic, not a
shortcoming of the filesize() function, which would
work correctly if you pass the full path to the file.
(I will add the text above to your note).
--- skadney@home.com wrote:
> When executing a "readdir" command, filesize doesn't
> seem able to get the size of some files if they
> aren't in the same directory as the script. The
> workaround to this is changing the working directory
> with "chdir" in addition to "readdir".
>
> http://www.php.net/manual/function.filesize.php
>
>
> --
> PHP Notes Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> php-notes-unsubscribe@lists.php.net
> For additional commands, e-mail:
> php-notes-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
> .
> .net
>
> .
>
=====
--- Jesus M. Castagnetto (jcastagnetto@yahoo.com)
__________________________________________________
Do You Yahoo!?
Thousands of Stores. Millions of Products. All in one Place.
http://shopping.yahoo.com/