Código PHP:
<?
$the_array = Array();
$handle = opendir('archivos/.');
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$the_array[] = $file;
}
}
closedir($handle);
sort ($the_array);
foreach($the_array as $val){
echo "<a href=\"archivos/$val\">$val</a><br>";
}
?>