<?php $dh = opendir('/usr/local/apache2/htdocs/'); while ($file = readdir($dh)) echo "$file <br>"; closedir($dh); ?>