who can tell me how to create the ".htpasswd" file by PHP? I only know there must be a encrypt method, but which encrypt is it? I try to use md5, but failed.
To create an .htpasswd file that works with Apache you should use the htpasswd command that comes with Apache.
no, I can't use exec() or system(), and now I have found use the crypt() can generate the encode string as same as htpasswd -c /path/.htpasswd user....
search www.hotscripts.com as they have loadsa stuff there
I like DIY,😛