On Thu, 2004-09-30 at 23:10, Jason Garber wrote: > Hello internals, [...] > If there is no better way, perhaps we could add constant called > (SAPI_TYPE = 'CLI') or something like that to the language to > facilitate this?
$ php -r 'var_dump(PHP_SAPI);' string(3) "cli" get_defined_constants() is your friend:) - Timm -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php