Re: Hash/checksum for an image?
| From: | Chris | Date: | Tue, 16 Jan 2007 02:00:33 +0000 |
| Subject: | Re: Hash/checksum for an image? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-247129@lists.php.net to get a copy of this message | ||
Brian Dunning wrote:
I want to make sure that a jpg uploaded by the user is unique. I was thinking about storing a hash code for each image in its MySQL record (got a db record for each uploaded image already). Is there an easy way to generate such a string?an md5 should suffice. http://www.php.net/manual/en/function.md5-file.php -- Postgresql & php tutorials http://www.designmagick.com/