到php5版本可以这样实现:$d="F:\\Project\\Webroot\\phpweb\\";if(is_dir($d)){ $filearr=scandir("$d"); print_r($filearr);}?>