一个目录遍历函数

澳门新葡亰平台游戏网站 ,一个目录遍历函数?phpfunction dirtree($path=”./test”) {echo “dl”;$d =
dir($path);while(false !== ($v = $d-read())) { if($v == “.” $v == “..”)
continue; $file = $d-path.”/”.$v; echo “dt$v”; if(is_dir($file))
dirtree($file);}$d-close();echo “/dl”;}dirtree();?

You can leave a response, or trackback from your own site.

Leave a Reply

网站地图xml地图