Hi,
I made a php script who act directly on Unix access files to add and remove user from a folder.
Now I am going to put a "login form" on a web page: only authorized users should be able to go inside the protected area.
What I am thinking to do is to point the form to a .php3 file where I will check the typed user name and password using a MySQL database (where data is equal to Unix data).
If the user is OK then I will redirect the page to the right path using an header like this:
http://username:password@www.domain.com/folder
else the user is redirected to the same page whit an error message.
Do you think this is a good way for my purpose?
Any other solutions or suggestions ?
I have made all this work because I want to protect all the files inside that folder.
Any comment and suggestion about will be higly appreciated.
Thanks
Fabio