我编写了一个脚本来使用此选项从更新目录中列出我的文件:
文件名 文件哈希 文件大小
为什么我会收到此错误:
Warning: filesize() [function.filesize]: stat failed for LinqBridge.dll in      C:\xampp\htdocs\update.php on line 15
我的 php 代码:
<?php
  if(isset($_GET['action']) and ($_GET['action']=="list"))
 {
    $myDirectory = opendir("./Update/");
    while($entryName = readdir($myDirectory)) {
$dirArray[] = $entryName;
 }
    closedir($myDirectory);
    $indexCount = count($dirArray);
    sort($dirArray);
   for($index=0; $index < $indexCount; $index++) {
    if (substr("$dirArray[$index]", 0, 1) != "."){
    echo $dirArray[$index]." ";
    echo @hash_file('md5',$dirArray[$index])." ";
    echo filesize($dirArray[$index])." ";
}
 }
 }
  ?>