Why is the same input returning two different MD5 hashes?

Posted by Rob on Stack Overflow See other posts from Stack Overflow or by Rob
Published on 2010-05-10T01:03:12Z Indexed on 2010/05/10 1:08 UTC
Read the original article Hit count: 360

Filed under:
|

Alright, I have two files. They are the EXACT SAME.

The first file is: http://iadsonline.com/servconfig.php

And the second file is: http://xzerox.info/servconfig.php

However, when I use md5_file() to get their MD5, They return two different MD5's.

The first returns cc7819055cde3194bb3b136bad5cf58d, which is incorrect, and the second returns 96a0cec80eb773687ca28840ecc67ca1, which is correct.

The file is simply an  

To verify, I've used this code:

$contents = file_get_contents($URL);
echo htmlentities($contents);

And they both return  

So why is it hashing them differently?

© Stack Overflow or respective owner

Related posts about php

Related posts about md5