Re: Detecting script's execution model
| From: | Sascha Schumann | Date: | Wed, 05 May 1999 21:06:00 +0000 |
| Subject: | Re: Detecting script's execution model | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-5375@lists.php.net to get a copy of this message | ||
On Wed, May 05, 1999 at 03:12:55PM -0500, Andrey Zmievski wrote:
> Is it possible to detect whether the script is being executed in the web
> browser through Apache or cgi-bin, or if it's being executed in the shell?
You could check for some environment variables such as SERVER_SOFTWARE or
GATEWAY_INTERFACE. See the CGI/1.1 specification:
http://hoohoo.ncsa.uiuc.edu/cgi/env.html
--
Regards,
Sascha Schumann |
Consultant | finger sas@schell.de
| for PGP public key
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net