On Wed, Feb 27, 2008 at 1:49 AM, Olav Mørkrid <[EMAIL PROTECTED]> wrote:
> hello
>
>  is crc32() an acceptable way of managing whether a JPEG file exists
>  (in a database or similar collection)?

    Not really.  It won't always properly compare the binary data, and
it's also slower than MD5, SHA1, and the like.

    Not only that, but you can use an MD5 check right in your SQL
query (at least with MySQL) rather than needing to pass to the PHP
script and back.

-- 
</Dan>

Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to