I would like to know if there is a way in PHP to create a password protected folder on the fly.
I need to create a specific folder INSIDE a main folder and password protect the new folder with a password chosen by the user.
Is there a way in PHP to achieve something like this?
Thank you!
Oh and also this folder should not be accessible from the web, and no one, EVEN the server administrator should be able to open it without the password.
I know it sounds like crazy, but this is for a copyright service, a serious thing.
LEt me know
This can be done for example by .htaccess placed in the folder you want to protect. Check this: http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/.
Another way could looke somehow like this:
deny from all
- this will deny access for everyone except server itself.