Jump to content

password protection and MySQL


brittny85

Recommended Posts

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.

Thanks!
-Brittny
Link to comment
https://forums.phpfreaks.com/topic/16966-password-protection-and-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.