Re: [PHP4BETA] Move php_log_err() to SAPI?
| From: | Stanislav Malyshev | Date: | Sat, 05 Feb 2000 11:05:11 +0000 |
| Subject: | Re: [PHP4BETA] Move php_log_err() to SAPI? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9844@lists.php.net to get a copy of this message | ||
AZ>> Ok, my question still stands: is there any way for CGI binary to detect
AZ>> that it's being run from the command-line instead of through the server?
I think, via environment (all CGI vars). If you set them, then AFAIU call
from command line doesn't differ from CGI call (and, possibly, this is
what user wants - to emulate CGI call).
--
Stanislav Malyshev stas@zend.com
+972-3-6139665