遍历目录结构
$dirname = "./runtime"; function fordir($dirname){ $dir = opendir($dirname); readdir($dir); readdir($dir); while (false !== ($file = readdir($dir))){ $file = $dirname.'/'.$file; if (is_dir($file)) { echo "目录:{$file}
"; }else{ echo "文件:{$file}
"; } } closedir($dir); } fordir($dirname);
新闻标题:遍历目录结构
标题路径:http://ybzwz.com/article/igdcoh.html