I'm working on a website that I have set up a membership system for. Right now all of my membership system is set up in PHP & MySQL and works beautifully. However, I'm working on setting up a new directory which is going to contain documents that aren't .php (they'll mostly be .txt, .doc etc.). I only want system admins be able to get to this directory, but I can't verify logins the same way I have up until now. Is there a way that I can make it so that if someone is logged in as an admin they can have access to this directory, but they can't access it otherwise? I found some things about .htaccess and .htpasswd but I couldn't figure out if I could make that work with the system I had without having to resort to having multiple passwords to get to this part of the site.
password protection and MySQL
1 reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users