I took the statement below from zend.com, and it mentions that the filenames are not returned in any order. I would like to sort then somehow, but I have been looking at sorting, and I have not found any real good resource. If you can help me sort by size or alphabetically, that would be great,
"Returns the filename of the next file from the directory. The filenames are not returned in any particular order. Example 1. List all files in the current directory
<?php
$handle=opendir('.');
echo "Directory handle: $handle\n";
echo "Files:\n";
while (false !== ($file = readdir($handle))) {
echo "$file\n";
}
closedir($handle);
?>
"
thanks