Re: crc check for JPEG file exists

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 27, 2008 at 1:49 AM, Olav Mørkrid <olav.morkrid@xxxxxxxxx> 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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux