note 14150 added to class.dir.php
| From: | php-general at lists dot php dot net | Date: | Thu, 19 Jul 2001 00:08:39 +0000 |
| Subject: | note 14150 added to class.dir.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15555@lists.php.net to get a copy of this message | ||
<?
$dir_index = dir("module");
while($get_filename=$dir_index->read()) {
if ( $get_filename != '.' && $get_filename != '..' )
$file_index[] = $get_filename;
}
$dir_index->close();
$i=0;
sort($file_index);
for ( $i=0 ; $file_index[$i] != '' ; $i++ )
echo $file_index[$i].'<br>';
?>
http://www.php.net/manual/en/class.dir.php