您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

php 遍历目录_PHP教程

2025/10/19 5:25:42发布13次查看
1. [代码]php 遍历目录方法1    
01
2. [代码]php 遍历目录方法2    
01 read()){
08             $p=$path.'/'.$file;
09         
10             if(($file!=.) and ($file!=..)){
11             echo $p.'
';
12             }
13         
14             if((is_dir($p)) and ($file!=.) and ($file!=..)){
15                 myscandir($p);
16             }
17         }  
18     }
19  
20     myscandir(dirname(dirname(__file__)));
21     
22 ?>
http://www.bkjia.com/phpjc/477435.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/477435.htmltecharticle1. [代码]php 遍历目录方法1 01 ?php 02 03 function myscandir($pathname){ 04 05 foreach( glob($pathname) as $filename ){ 06 07 if(is_dir($filename)){ 08 myscandir($filename./...
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product