Re: Bug #15652: Request way to get API type
| From: | Yasuo Ohgaki | Date: | Thu, 21 Feb 2002 08:52:04 +0000 |
| Subject: | Re: Bug #15652: Request way to get API type | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-80238@lists.php.net to get a copy of this message | ||
cstdenis@hotmail.com wrote:
Which one is better, constant or function.Any comments? If there is not feedback, I'll do it with constant. PHP_SAPI for current SAPI, just like PHP_VERSION, PHP_OS. -- Yasuo OhgakiFrom: cstdenis@hotmail.comOperating system: allPHP version: 4.1.1 PHP Bug Type: Feature/Change RequestBug description: Request way to get API type There does not appear to be any way to check if the server is running as a cgi or apache module. The only option I could find is capturing and parsing the output of phpinfo which is far from optminal. I am requesting a feature that returns the api used for use in if statments and such to determine program flow (as some features only work on one of theses, or work differently)