<?PHP
/**
* 遍历目录的代码
*
* @param
* @author 网: www.512Pic.com
**/
function myscandir($pathname){
foreach( glob($pathname) as $filename ){
if(is_dir($filename)){
myscandir($filename.'/*');
}else{
echo $filename.'<br/>';
}
}
}
myscandir('D:/wamp/www/exe1/*');
/*** 来自编程之家 jb51.cc(jb51.cc) ***/