Here is my script
$dir = "./";
// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
print "$file<br>";
}
closedir($dh);
}
}
But i cannot display all the files under all directories