When using readdir()
| From: | Matt Greene | Date: | Tue, 30 Nov 1999 22:57:09 +0000 |
| Subject: | When using readdir() | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-7131@lists.php.net to get a copy of this message | ||
How is it that I can use read dir but have it only display files with like a
.html or .php extension?
Here is my Current code:
$handle=opendir('.');
while ($file = readdir($handle)) {
echo "$file<br>\n";
}
closedir($handle);