I am reading into a directory and pulling all files from it. I would like to have the files displayed in an ascending order. What do I need to do to the code below to achieve this?
<?php
// Progress_Reports
$dir = dir($current_dirPR);
echo "<b>Progress Reports</b><br><br>";
while ($file = $dir->read())
{
if ($file != "." && $file != ".." && $file != ".htaccess") {
echo " <a href=adminget_file.php?e=1&file_name=$file> $file </a><br>";
}
}
echo "<br><br>";
$dir->close();
?>
Thx in advance.
Alex