[EMAIL PROTECTED] wrote: > From: [EMAIL PROTECTED] > Operating system: all > PHP version: 4.1.1 > PHP Bug Type: Feature/Change Request > Bug 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) >
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 Ohgaki -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php