TapeGun007 Posted October 11, 2013 Share Posted October 11, 2013 Ok, so I setup up a file .htaccess that points to my .htpasswds file in a secure location. When a user tries to enter into a specific directory, it is password protected and prompts a box with a username and password. Is there any way that I can read this username and password with php? I'm not asking you to write code for me, but you if have an example or a page I can read, I would love to see how this is done (if possible). Depending on the username, it would direct them to the correct folder with their files. Or maybe I'm going about this the wrong way altogether? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/282897-reading-usernamepassword/ Share on other sites More sharing options...
kicken Posted October 11, 2013 Share Posted October 11, 2013 HTTP Authentication with PHP Quote Link to comment https://forums.phpfreaks.com/topic/282897-reading-usernamepassword/#findComment-1453582 Share on other sites More sharing options...
Solution TapeGun007 Posted October 11, 2013 Author Solution Share Posted October 11, 2013 Ah ok. Thank you kicken, I just didn't know the right thing to Google. This makes total sense. Quote Link to comment https://forums.phpfreaks.com/topic/282897-reading-usernamepassword/#findComment-1453583 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.