white_lightning Posted August 22, 2011 Share Posted August 22, 2011 Hi Guys, This is my first post as part of the community. I am working on a personal project for myself and was trying to password protect some pages. Im newish to php and was wondering if HTTP AUTH headers work with MYSQL Databases for usernames and passwords. Any help or insight would be greatly appreciated! Thanks! Steve Quote Link to comment https://forums.phpfreaks.com/topic/245400-http-auth-headers-and-mysql/ Share on other sites More sharing options...
titan21 Posted August 22, 2011 Share Posted August 22, 2011 I didn't look into this in too much detail but am thinking this may help... http://www.peej.co.uk/projects/phphttpdigest.html Quote Link to comment https://forums.phpfreaks.com/topic/245400-http-auth-headers-and-mysql/#findComment-1260586 Share on other sites More sharing options...
AbraCadaver Posted August 22, 2011 Share Posted August 22, 2011 Here is one I found: http://www.rooftopsolutions.nl/blog/223 But i have used mod_auth_mysql which is an Apache module that uses MySQL. Quote Link to comment https://forums.phpfreaks.com/topic/245400-http-auth-headers-and-mysql/#findComment-1260642 Share on other sites More sharing options...
white_lightning Posted August 22, 2011 Author Share Posted August 22, 2011 Here is one I found: http://www.rooftopsolutions.nl/blog/223 But i have used mod_auth_mysql which is an Apache module that uses MySQL. Could you explain how to use mod_auth_mysql ? Sorry for all of the questions but I am really new at this. I know that I could also use a .htaccess but i want users to be able to register themselves and then immediately log in. I'm using XAMPP for a local testing server and I use dreamhost for the live stuff. Quote Link to comment https://forums.phpfreaks.com/topic/245400-http-auth-headers-and-mysql/#findComment-1260677 Share on other sites More sharing options...
AbraCadaver Posted August 22, 2011 Share Posted August 22, 2011 http://modauthmysql.sourceforge.net/CONFIGURE It is directory based so if you want a more scalable solution you would probably use your database to store users roles and what resources they have access to. Quote Link to comment https://forums.phpfreaks.com/topic/245400-http-auth-headers-and-mysql/#findComment-1260683 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.