12-08-2007, 04:58 PM
|
#11 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
|
Quote:
Originally Posted by aristoworks
Any ideas on taking some "part" of the image and running through md5 to get a unique string?
|
You can just hash the whole file contents, MD5 will be just fine for that.
php Code:
// Overly simple example of hashing a remote file$file = file_get_contents('http://domain.com/file.jpg'); $hash = md5($file); // or, hash('md5', $file)
|
|
|
|