2009-10-27, 01:36 AM
you could write a simple function to uniquely hash your image names.
P.S: excuse any PHP mistakes. I'm currently drowning in jQuery and may have mixed the two up somehow... Forgive my mistakes
<?php
class hasher {
public $new_photo;
function generate($photo) {
$this->new_photo = sha1(md5(hash("sha512", $photo.time().rand())));
return $this->new_photo;
}
}
$hash = new hasher;
$hash->generate($the-uploaded-file);
?>
etc...P.S: excuse any PHP mistakes. I'm currently drowning in jQuery and may have mixed the two up somehow... Forgive my mistakes