Hi folks,

I would like to add a few fields to a custom Apache access log format
and populate the values from mod_php.

As a mechanism, I was thinking of using the PHP function putenv( ) to
set environmental variables. I am assuming that these would be in the
same request namespace used by Apache?

Then in Apache, I would use the mod_log_config directive documented

"%...{FOOBAR}e:  The contents of the environment variable FOOBAR"

to place the value of the variables in the log string.

Is this a sensible approach? I only have a live server to test on, so
I'd like to be sure I am on the right track b


Geoff Caplan
Advantae Ltd


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to