jennyflower
Programmer
Hi,
I want to create a site that allows users to have access to their directory which stores some files for them.
I want to be able to add a user, create their directory then alter the htaccess file to password protect the directory. Is there anyway to do this with php as I am just trying to avoid having to go into my hosting control panel everytime I add a new user in.
I don't really yet understand completely how htaccess and htpassword work yet though so a really simplified version of what to do along with a description of what each ht file actually does would help!
Thanks
I want to create a site that allows users to have access to their directory which stores some files for them.
I want to be able to add a user, create their directory then alter the htaccess file to password protect the directory. Is there anyway to do this with php as I am just trying to avoid having to go into my hosting control panel everytime I add a new user in.
I don't really yet understand completely how htaccess and htpassword work yet though so a really simplified version of what to do along with a description of what each ht file actually does would help!
Thanks