<? $dir = "admin"; $open = opendir($dir); while ($file = readdir($open)) { echo $file; echo "<br>"; } ?>