faqts : Computers : Programming : Languages : PHP : Function Libraries : HTTP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 11 people (64%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

How can I use $PHP_AUTH_USER when register_globals is set to off?

Nov 13th, 2005 03:47
Matthew Wilkinson, Roel Beukelaers,


Just use the $_SERVER['PHP_AUTH_USER'] variable or
$HTTP_SERVER_VARS['PHP_AUTH_USER'] if you have a PHP version before 4.1.0.