Doesn't that just add a user to the password file?
I want to enable browser access to a password protected directory by passing the username and password to the server without having the pop-up login box display.
Elfyn McBratney wrote:
Hi,
Yes you can do this using the system() function. You will need to ask your host for the path to htpasswd and you would run something like this to add a user:
<?php
system("/path/to/htpasswd user pass");
?>
Im not quite sure on the exact args get the right info from your host/admin.
Elfyn