Heya all,
i'm running Apache on a windows machine. Can I use PHP to create a form that will automatically add users to the list of users that can access a protected folder?
Also, can I use PHP to change the passwords for specific users?
thanks!
Printable View
Heya all,
i'm running Apache on a windows machine. Can I use PHP to create a form that will automatically add users to the list of users that can access a protected folder?
Also, can I use PHP to change the passwords for specific users?
thanks!
how are you password protecting them? is it in the control panel? if you are using .htaccess file it might be possible.
i basically use htpasswd to generate the password list then modify the httpd.conf to set directory permissionsQuote:
Originally posted by scoutt
how are you password protecting them? is it in the control panel? if you are using .htaccess file it might be possible.
well if you are setting them with php then what is stopping you from changing them? you should be able to. just load the file and then append to it ro search through it so you get the right name or password.
actually, i use htpasswd and edit the httpd.conf file by hand, not by script. :p
well you will have to get the passwords encrypted and php can't do that that I know of. so you will have to use a perl script I think.
you can add them to the htaccess file as all you ned to do is load it in a variable them add to it, then load it back in the file.