PHP md5_file hash is not the same as other online hash generators -
i uploading file using php uses md5_hash create md5 hash of file.
when upload same file other online md5 hash generators return else.
is there doing wrong?
$md5 = md5_file($_files['inputname']['tmp_name']); var_dump($md5); string(32) "d41d8cd98f00b204e9800998ecf8427e"
https://md5file.com/calculator says:
md5 3be70563560066c0751a8e9427949bbf
d41d8cd98f00b204e9800998ecf8427e
md5-hash of empty string. means file filename $_files['inputname']['tmp_name']
points empty.
so, there major problem upload somewhere... maybe server configuration error. it's impossible though, without further investigations.
Comments
Post a Comment