I have made a PHP script that crypts a plain text password:
$pwdcript = crypt ('$pwd');
as I get the cripted password I then "link" username with the password to get the format:
user:password
and then I place this staff inside a user.psw file used to check access to a folder toghter with a user.grp file.
The problem is that users added in this way are not accepted :-(
I have asked to my Server owner and they asked me:
Your server is
running the Crypt module for PHP version
4.0b2. Crypt uses the standard
Unix DES encryption method, and
the "htpasswd" command uses the crypt()
function, so htpasswd and crypt() are the
same.
So I am asking: Why things are not working form me ?
What can I do to create valid passwords ?
Thank you
Fabio