Re: crc check for JPEG file exists

From: Date: Wed, 27 Feb 2008 07:54:26 +0000
Subject: Re: crc check for JPEG file exists
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-270262@lists.php.net to get a copy of this message
I would rather use md5_file() for file uniqueness. Aleksander Olav Mřrkrid wrote:
hello is crc32() an acceptable way of managing whether a JPEG file exists (in a database or similar collection)? i mean doing a crc32() on the binary data of the JPEG file, and then check the database if there is already another entry with the same CRC. the database has relatively few images (some thousands). is there any chance of collision (two different JPEG images generating the same CRC) that is anywhere near likely, or is this extremely remote? advice would be appreciated.


« previous php.general (#270262) next »