chdir($path); $dir=opendir("."); while ($file=readdir($dir)) { if (($file!=".")&&($file!="..")) $files[]=$path.$file; }
What is the sorting order when this executes? It is not sort by the name when I tested it.
Thanks!
read right through this thread for an example of sorting by name.
http://www.weberdev.com/phorum/read.php?f=1&i=7827&t=7805