note 57414 deleted from function.opendir by betz
| From: | betz@php.net | Date: | Mon, 03 Oct 2005 17:08:10 +0000 |
| Subject: | note 57414 deleted from function.opendir by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-96305@lists.php.net to get a copy of this message | ||
Note Submitter: andré
Reason: non-english
----
l'exemple du début est mieux comme ca:
$dir = "tmp/php5/";
if (is_dir($dir))
{
if ($dh = opendir($dir))
{
while (($file = readdir($dh)) !== false)
{
echo "<br>fichier : $file : type : " . filetype($dir . $file);
}
closedir($dh);
}
}