Re: Re: MySQL - PHP combined log

From: Date: Tue, 23 Jul 2002 18:22:44 +0000
Subject: Re: Re: MySQL - PHP combined log
Groups: php.general 
Request: Send a blank email to php-general+get-109148@lists.php.net to get a copy of this message
><clip> >>>I want to be able to view a single log that contains the following: ><clip> >> >>http://php.net/error_log >> > >how about this curve... getting PHP to append a line to the apache log. How about reading the documentation? http://php.net/error_log >would much rather pump the clf formatted log sting directly into the appropriate >apache log, but if I am not mistaken, using the above function would require >permissions for user nobody(www, whatever) on the log files, no? Nope. PHP is running as part of Apache. PHP can ask Apache to write stuff into its own log. That's one of the features of http://php.net/error_log NOTE: If you are running PHP as a CGI, this probably ain't gonna work, because, as noted, you need access to those logs, and PHP running as a CGI is a separate process and probably can't convince Apache that it's kosher to write into its log files. YMMV. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#109148) next »