Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass variable from .htaccess basic auth to PHP

Status
Not open for further replies.

jamiejamie

Technical User
May 16, 2005
12
US
Is it possible to pass a variable "Username && Pass" from Apache Basic Authentication to a PHP script? If so, how?

Jamie Aaron
 
If and only if you are running PHP as an Apache module, the credentials presented to the server will be found in $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW']



Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top