Ok, this is driving me mad, I really need some help.
Im using PHP to write to a htpasswd file, using the crypt() function. However, when ever i test my work, the password is wrong. I think i must be using the wrong salt, but ive looked everywhere and can't find the right one.
Can someone please fill in the blank?
$salt = ????????
crypt($password, $salt)
so that it will work in the htpassword file.
thanks!
ben.