Allo,
I have a script that displays the files in a folder:
$path = "/home/public_html/clients/web/";
chdir($path);
$handle=opendir($path);
while (false!==($file = readdir($handle))) {
if ($file != "." && $file != ".." && is_dir($file)) {
$fileText = str_replace("_"," ",$file);
echo "<a href=\"/showCase.php?client=".$file."&media=web\"><img src=\"/clients/web/".$file.".gif\" alt=\"".$fileText."\" class=\"leftMenuImg\" /></a><br />";
}
}
closedir($handle);
How can i order the results alphabetically. Currently they seem to reorder everytime someone adds some thing to a folder?
Cheers in advance,
Tony.