日期:2014-05-17 浏览次数:20459 次
$handle = opendir('../upload/'); $arr = array(); $file_arr=array(); while($file = readdir($handle)){ $newpath="../upload/".$file; if(is_dir($newpath)){ $arr[] = $newpath ; $file_arr[]=$file; } } foreach($file_arr as $key=>$val){ echo $val.'<br>'; }