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. 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 Link to comment https://forums.phpfreaks.com/topic/282897-reading-usernamepassword/#findComment-1453582 Share on other sites More sharing options...
TapeGun007 Posted October 11, 2013 Author Share Posted October 11, 2013 Ah ok. Thank you kicken, I just didn't know the right thing to Google. This makes total sense. Link to comment https://forums.phpfreaks.com/topic/282897-reading-usernamepassword/#findComment-1453583 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.