note 6715 deleted from file_exists by torben
| From: | torben@php.net | Date: | Wed, 20 Sep 2000 18:01:47 +0000 |
| Subject: | note 6715 deleted from file_exists by torben | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5237@lists.php.net to get a copy of this message | ||
There's a beautiful way to get the content of a directory (files, dirs etc.)
this is a PHP xommand: readdir();
code example is:
<?
$handle=opendir('.');
echo "files:"; echo "<br>";
while ($file = readdir($handle)) {
echo "$file"; echo "<br>";
}
?>