<?php

$path = “D:/Refserver 1”;
$dir_handle = @opendir($path) or die(“Unable to open $path”);

echo “<table border=1>”;
echo “<th>File Name</th>”;
echo “<th>SHA1 Hash</th><tr>”;
foreach(glob(‘D:/Refserver 1/*.*’) as $arr)
{
if(is_dir($arr))
{
continue;
}
echo “<td> ” .$arr . “<td>”. sha1_file($arr) . “</td></tr>”;
}
?>