Javascript:
function md5_file ( str_filename ) { // Calculates the md5 hash of a given file
//
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
return md5(file_get_contents(str_filename));
}
Примеры:
md5_file('http://kevin.vanzonneveld.net/pj_test_supportfile_1.htm');
'202cb962ac59075b964b07152d234b70'
|
|
|
|