<?php
function getAllFile($path){
if(is_dir($path)){
$re=opendir($path);
while(($file==readdir($re))!==flase){
if($file!='.' && $file !='..'){
if(is_dir($file)){
getAllFile($path.'/'.$file);
}
echo $file;
}
}
}
}