PGD-Connect--Tribes-2-/Univ/Data/dumpDirs.php

13 lines
349 B
PHP
Raw Permalink Normal View History

2014-06-19 13:43:37 -05:00
<?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);
}
}
?>