[BNM] Advice on Comparing base64 encoded images in PHP please.
joseppi c
joseppic at yahoo.co.uk
Mon Jul 2 17:46:48 BST 2007
Hi,
I am having to store jpeg Images as base64 encoded strings.
I would like to do a comparison between two images to see if they differ.
Should I just do a:
if(strcmp($imageStr1, $imageStr2))
{
//do stuff
}
Or speed-wise is it better to compare the MD5 result of each string:
if(md5($imageStr1) != md5($imageStr2))
{
//do stuff
}
Or does it matter?
Thanks,
Joe.
___________________________________________________________
What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship.
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk
More information about the BNMlist
mailing list. Powered by Wessex Networks