PGD-Connect--Tribes-2-/Univ/Data/dumpDirs.php
2014-06-19 13:43:37 -05:00

13 lines
No EOL
349 B
PHP

<?php
$dir = "/home/phantom7/public_html/public/Univ/Data/";
// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
echo "filename: $file : filetype: " . filetype($dir . $file) . "<p>";
}
closedir($dh);
}
}
?>