That is one of the things that I had tried...
But I do not think that I am doing it correctly.
When I tried it, this is what I had...
<?php
if ($handle = opendir('c:/phpdev/www')) {
echo "Directory handle: $handle\n";
echo "Files:\n";
while (false !== ($file = readdir($handle))) {
echo "$file\n";
}
while ($file = readdir($handle)) {
echo "$file\n";
}
closedir($handle);
}
?>