Upon a quick look, I think this is going to work out.
I have two images(same, copied) like
Code:
-rw-rw-r-- 1 ArunB ArunB 152875 Apr 9 05:14 linux1.jpg
-rw-rw-r-- 1 ArunB ArunB 152875 Apr 9 00:05 linux.jpg
I applied sha1_file() on both the files, got the same hash out.
PHP Code:
<?php
echo $str = sha1_file( '/home/ArunB/Desktop/linux.jpg' );
echo PHP_EOL . $str1 = sha1_file( '/home/ArunB/Desktop/linux1.jpg' );
Result:
Code:
83d1dfbe5ec9ad4b20fcc9f30770be418b2a265b
83d1dfbe5ec9ad4b20fcc9f30770be418b2a265b
Bookmarks