2015年1月24日

php遍历文件夹及其下所有文件的代码

摘要: php实现遍历当前文件夹以及其下所有文件与文件夹的代码,主要是用到了递归,有需要的朋友,可以参考学习下。代码如下:';function getdir($path){if(!is_dir($path)) return;$handle = dir($path);while($file=$handle->... 阅读全文

posted @ 2015-01-24 16:26 ldico 阅读(925) 评论(0) 推荐(0)

导航