Quote:
Originally Posted by msgotit
Probably a user error, but it wasn't working so I replace this line:
PHP Code:
$filehash = @md5_file(DIR . $productfile['filename']);
With this:
PHP Code:
$filehash = @md5(str_replace("\r\n", "\n", file_get_contents(DIR . $productfile['filename'])));
That seemed to solve my problem... Is there a reason? Or just user error.
|
And that still gives you a valid MD5?
If you don't tell what was not working, i can't fix it.