note 13778 added to function.readdir.php
| From: | evilbunni3s at hotmail dot com | Date: | Mon, 02 Jul 2001 23:15:00 +0000 |
| Subject: | note 13778 added to function.readdir.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14928@lists.php.net to get a copy of this message | ||
Hey how do i make the file write in alphabetical order?
here is my script:
<?php
$handle=opendir('bands');
while (false!=($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "<a
href='int.php?page=bands/$file/$file'>\n$file</a><br>";
}
}
closedir($handle);
?>
http://www.php.net/manual/en/function.readdir.php