RobBroekhuis
Technical User
I have directory-level authentication set up for some parts of my website. Accessing pages within these directories requires me to log in (or face a 403), and my being logged in is reflected in the server logs, e.g.
where MyUserName is the user name entered into the HTTP authentication window. Apache clearly knows about the username - is there any way for me to get that information from my PHP scripts? I tried using the $_SERVER['PHP_AUTH_USER'] global, but it only applies to PHP page-level authorization.
Rob
![[flowerface] [flowerface] [flowerface]](/data/assets/smilies/flowerface.gif)
Code:
##.27.156.146 - MyUserName [05/Nov/2004:10:12:02 -0500] "GET /play/auth.php HTTP/1.1" 200 21 admin.mydomain.com "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322)" "-"
where MyUserName is the user name entered into the HTTP authentication window. Apache clearly knows about the username - is there any way for me to get that information from my PHP scripts? I tried using the $_SERVER['PHP_AUTH_USER'] global, but it only applies to PHP page-level authorization.
Rob
![[flowerface] [flowerface] [flowerface]](/data/assets/smilies/flowerface.gif)