$handle=opendir($_SERVER['DOCUMENT_ROOT'].'/2005'); while ($file = readdir($handle)) { if(is_file($file)){echo $file.'<BR>';} } closedir($handle);