note 22967 deleted from function.readdir by philip
| From: | philip@php.net | Date: | Fri, 08 Nov 2002 01:57:42 +0000 |
| Subject: | note 22967 deleted from function.readdir by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-39122@lists.php.net to get a copy of this message | ||
With PHP3, I think that the right way would be
while(is_string($file = readdir($dir)))
else you would have problems with a file called "0".