readdir: Read entry from directory handle
<?php $dh = opendir('./'); while ($file = readdir($dh)) echo "$file <br>"; closedir($dh); ?>