博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年3月7日

摘要: php5 实现,两种方法:scandir和DirectoryIteratorfunction scan_all($dir){ $temp = scandir($dir); if(is_array($temp) && count($temp)>2){ array_shift($temp); array_shift($temp); foreach($temp as $v){ $cur_dir=$dir.DIRECTORY_SEPARATOR.$v; if(is_dir($cur_dir)){ ... 阅读全文

posted @ 2012-03-07 14:03 峰雪 阅读(2062) 评论(0) 推荐(0) 编辑