i am creating Hash values with following code, now what happens is that when i test the hash value on Windows local Xampp server i get hash value which is different for same code that runs on Linux.
move_uploaded_file($_FILES["file"]["tmp_name"], "upload/" . $newname); "Stored in: " . "upload/" . $_FILES["file"]["name"]; $image = "upload/" . $newname; $sign = md5(file_get_contents($image));
Now i dont know why is this happening. For the same code that i just pasted above.
EDIT: Opening question again. The solution i found worked only for Linux which means linux and windows now give me same hash but when an image is uploaded from Mac(IOS) it is still generating different Hash.