hi i'm looking for a script that gives me the md5 of a file by link i have all ready a script that gives the md5 of the files that are in the folder but now i wanna add a script where you paste the link to the file and it prints out the md5 if some one knows how to make this plz let me know
code that i have :
<?php
$cwd = $_SERVER['REQUEST_URI'];
$cwd = substr($cwd, 0, strrpos($cwd, '/' + 1));
function paintUndersideOfFox($c) {
global $cwd;
echo('<ul class="dirlist">');
$d = opendir($c);
while($f = readdir($d)) {
if(strpos($f, '.') === 0) continue;
$ff = $c . '/' . $f;
echo 'MD5 file hash of ' . $ff . ': ' . md5_file($ff);
echo('<li><a href="' . $cwd . $ff . '">' . $ff . '</a></li><br />');
if(is_dir($ff)) paintUndersideOfFox($ff);
}
echo('</ul>');
}
paintUndersideOfFox('.');
?>