PHP - Hash contents of uploaded file
You can use md5_file()
or sha1_file()
function. For example, if your post variable is filevar
:
$myhash = md5_file($_FILES['filevar']['tmp_name']);
You can use md5_file()
, even on your temporary file.
You can use md5_file()
or sha1_file()
function. For example, if your post variable is filevar
:
$myhash = md5_file($_FILES['filevar']['tmp_name']);
You can use md5_file()
, even on your temporary file.