。。

 

 function file_list ( $path )   
 {   
     
if ( $handle = opendir ( $path ))   
     {   
         
while ( false !==  ( $file = readdir  ( $handle )))   
         {   
           
& nbsp; if  ( $file != "." && $file != ".." )   
           
&nbs p; {   
           
& nbsp;     if ( is_dir ( $path . "/" . $file ))   
           
&nbs p;     {   
           
& nbsp;         echo $path . " : " . $file . " <br> " ; //去掉此行显示的是所有的非目录文件   
           &nbs p;         file_list  ( $path . "/" . $file ) ;   
           
& nbsp;     } else  
           
&nbs p;     {   
           
& nbsp;         echo $path . " : " . $file . " <br> " ;   
           
&nbs p;     }   
           
& nbsp; }   
         }   
     }   
 }   

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-11
  • 2021-09-08
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2021-11-20
  • 2021-11-09
相关资源
相似解决方案