note 24032 deleted from function.readdir by tularis
| From: | tularis@php.net | Date: | Sun, 13 May 2007 19:07:35 +0000 |
| Subject: | note 24032 deleted from function.readdir by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-126562@lists.php.net to get a copy of this message | ||
Note Submitter: vjtNO at SPAMazzurra dot org
----
to skip hidden files ( on unix ), you can do:
$d = opendir('/path/to/dir');
while(($f = readdir($d)) !== false)
{
if($f[0] == '.')
continue;
/* .. your code here .. */
}