Try this:

<? echo ($HTTP_SERVER_VARS["PHP_AUTH_USER"]); ?>

-----Original Message-----
From: Jason Jacobs [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 4:09 PM
To: [EMAIL PROTECTED]
Subject: [PHP] htaccess


Hey folks.  I have another htaccess question.  I have an entire folder set
up to require authentication.  It's in an htaccess file, not in each page.
I was sure that the variable that's passed from the authentication dialog
was $PHP_AUTH_USER, but it's not working when I use that in a query.  Anyone
got ideas?  I'd paste my code, but when that wasn't working, I changed it
back to hardcoded values. :)

Jason


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to