\n"; echo "FilenameFile SizeFile Type\n"; $DirEntries = scandir($Dir); foreach ($DirEntries as $Entry) { $EntryFullName = $Dir . "/" . $Entry; echo "" . htmlentities($Entry) . "" . filesize($EntryFullName) . "" . filetype($EntryFullName) . "\n"; } echo ""; } else { echo "

The directory " . htmlentities($Dir) . " does not exist.

\n"; } ?>