What's faster/better to use: the MySQL or PHP md5 function?
问题 I checked the passwords for the users against the DB. What is faster, the MySQL MD5 function ... pwd = MD5('.$pwd.') OR the PHP MD5 function ... pwd = '.md5($pwd).' What is the right way between the two options? 回答1: If your application is only calcullating md5 when someone registers on your site, or is logging in, own many calls to md5 will you do per hour ? Couple of hundreds ? If so, I don't think the really small difference between PHP and MySQL will be significant at all. The question