Re: [PHP4BETA] Move php_log_err() to SAPI?

From: Date: Fri, 04 Feb 2000 22:58:25 +0000
Subject: Re: [PHP4BETA] Move php_log_err() to SAPI?
References: 1 2 3 4  Groups: php.version4 
Request: Send a blank email to php-version4+get-9838@lists.php.net to get a copy of this message
On Thu, 03 Feb 2000, Zeev Suraski wrote: > Me too. There should be an entry in the sapi_module structure that knows > how to log a char * string. Then, the php_log_err() would have the logic > of creating the format + args into the result string, and then it'd call > the SAPI logging function. > > Andrei - where stderr goes in CGI mode depends on under which server you're > running. In Apache, for instance, it'd go to the error_log. In other > servers, it may be different. Ok, my question still stands: is there any way for CGI binary to detect that it's being run from the command-line instead of through the server? -Andrei * I wish life had an UNDO function. *

« previous php.version4 (#9838) next »