note 29570 added to function.stat
| From: | blue at perceptivedesign dot co dot uk | Date: | Tue, 18 Feb 2003 00:32:41 +0000 |
| Subject: | note 29570 added to function.stat | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44120@lists.php.net to get a copy of this message | ||
This is just theory, but, if you're looping through a directory to list files or whatever, PHP
gathers all this information about a file even though you'll probably only use a few values of
the array returned by stat()... so it's probably faster to use "direct" functions
like filesize() and fileowner() etc...
--
http://www.php.net/manual/en/function.stat.php
http://master.php.net/manage/user-notes.php?action=edit+29570
http://master.php.net/manage/user-notes.php?action=delete+29570
http://master.php.net/manage/user-notes.php?action=reject+29570