Any way to determine whether PHP is an Apache module or CGI?
| From: | Philip Hallstrom | Date: | Thu, 27 Jul 2000 17:15:34 +0000 |
| Subject: | Any way to determine whether PHP is an Apache module or CGI? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-8593@lists.php.net to get a copy of this message | ||
Hi -
Is there anyway from within a script to determine whether the
script is being executed with an Apache module or the standalone CGI
executable?
Looking at the output of phpinfo(), I can see the setting "Server API",
but as far as I can tell there is no way to get that information any way
else.
I know I could test other variables that are there depending on which way
it's run, but I'd like something that was more "built in".
??
-philip