Hi Guys,

Does anyone happen to know why the below code reads the directory in reverse
alphabetical order?  Not a major problem - easy enough to whack it in an
array and sort it, but annoying nonetheless.


$default_dir = "../screenshots";

if (!($dp = opendir($default_dir))) die("cannot open $default_dir");
while($file = readdir($dp))
        if($file != '.' && $file != '..') echo"<a
href='opendir.php?opendir=$file'>$file</a><BR>";
closedir($dp);

Best Regards
Bob Irwin
Server Admin & Web Programmer
Planet Netcom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to