方法:

<?php   
    


//定义操作目录
$dir = 'D:\phpstudy\WWW\test';


function getDir2($dir)
{
    foreach (glob($dir . '\*') as $file_path) {
      //file change GBK to utf-8
      $file_path = iconv("GBK","utf-8//IGNORE",$file_path);
      $file_name =  substr($file_path, strlen(dirname($file_path)) + 1);
      if($file_name == 'index.php'){
        //pass
      }else{
        $md5file = md5_file($file_path);
        echo $md5file." | ".$file_name."<br/>";
      }
      
      
    }
}


getDir2($dir);

 

相关文章:

  • 2021-11-14
  • 2022-12-23
  • 2021-10-20
  • 2022-02-19
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-11
  • 2022-12-23
  • 2021-12-06
  • 2021-09-13
  • 2022-12-23
  • 2021-10-26
  • 2021-06-03
相关资源
相似解决方案