note 11094 rejected from function.readdir by sander
| From: | sander@php.net | Date: | Sat, 06 Apr 2002 19:14:28 +0000 |
| Subject: | note 11094 rejected from function.readdir by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-28749@lists.php.net to get a copy of this message | ||
To improve the speed (marginally) I suggest a loop of the form:
readdir($dirhandle)
readdir($dirhandle)
while($curfile = readdir($dirhandle)){
//your loop body
}
Rather than checking each file to remove '.' and '..' from the loop.