note 93716 rejected from function.scandir by torben
| From: | torben@php.net | Date: | Thu, 24 Sep 2009 07:16:32 +0000 |
| Subject: | note 93716 rejected from function.scandir by torben | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161007@lists.php.net to get a copy of this message | ||
Note Submitter: ishtiaq dot net at hotmail dot com
----
the following code never works,,
i've tried on different machines, can you fix it ?
==================================
$folder = './artwork/';
$h = opendir($folder);
while($f = readdir($h))
{
if(is_dir($f) and $f!=='.' and $f!=='..')
{
echo ucwords($f);
echo " - ";
}
}