Hi
I noticed in some examples to the encrypt functions of the PHP manual a
syntax was used for password checks such as
if (strcmp($userpa ssword, md5($_POST['password'])) == 0) {
// do login
}
What is the advantage of this compared to
if ($userpassword == md5($_POST['password'])) {
// do login
}
?
--
Markus
I noticed in some examples to the encrypt functions of the PHP manual a
syntax was used for password checks such as
if (strcmp($userpa ssword, md5($_POST['password'])) == 0) {
// do login
}
What is the advantage of this compared to
if ($userpassword == md5($_POST['password'])) {
// do login
}
?
--
Markus
Comment