In mod_perl i can do something like:
$r->user("username");
And then the username will show up in the username section in the logs.
Is there a way to do this in php? without having to modify apache?
Edit: So far i've tried both:
$_SERVER['REMOTE_USER'] = "username";
$_SERVER['PHP_AUTH_USER'] = "username";
apache_setenv('REMOTE_USER', "username")
with no luck
Edit2: Apache logs are in the format of:
ipAddress REMOTE_USER IDENT datetime... etc
I'm trying to set REMOTE_USER without using apache's mod_auth, but php code.