I started this before Felu posted his code, but I got bored so I added recursive listing
If something doesn't work, remember I haven't used PHP a lot for a long time thanks to the wonderful Ruby language
code:
<?php
function md5_list($path, $indent=''){
$dir = dir($path);
$entry = $dir->read();
while($entry !== false){
if($entry != '..' && $entry != '.'){
$fullPath = $path . DIRECTORY_SEPARATOR . $entry;
if(is_dir($fullPath)){
md5_list($fullPath, $indent . " ");
}
else echo $indent . md5_file($fullPath) . ' *' . $fullPath . "\n";
}
$entry = $dir->read();
}
$dir->close();
}
echo "<pre>";
md5_list(getcwd());
echo "</pre>";
?>