- 博客(1)
- 收藏
- 关注
原创 使用php scandir()函数遍历文件夹并输出所有文件路径
以F盘为例:<?php $dir = "F:"; //当前目录 function list_file($dir){ $list = scandir($dir); // 得到该文件下的所有文件和文件夹 foreach($list as $file){//遍历 $file_location=$dir."/".$file;//生成路径 if(is_dir($file_
2014-03-18 15:43:46 2632
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人