Re: is there a way to set apache's auth_user from php?

From: Date: Sat, 24 Feb 2001 00:59:12 +0000
Subject: Re: is there a way to set apache's auth_user from php?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41410@lists.php.net to get a copy of this message
> I would like to have the authenticated user name > appear in my apache access web logs but I am not using > HTTP authentication. I am using phplib to have better > control over the authentication process. > Is there a way to set this apache api variable > from php code so that apache will log these user names? I think not. That variable is sent/set by the *browser* to Apache on each URL request. What you *could* do is log stuff yourself from PHP using http://php.net/error-log You could log the time, their IP, and their user_agent using that, and then later mix-and-match those entries with Apache entries to figure out who asked for what. For that matter, you could turn off Apache logging, and use PHP's to log everything you need. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#41410) next »