Jump to content

Reading Username/Password


TapeGun007

Recommended Posts

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

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.