Re: [PHP] detect cli sapi

2009-06-10 Thread Eddie Drapkin
if(PHP_SAPI == 'cli') { } or if(php_sapi_name() == 'cli') { } On Wed, Jun 10, 2009 at 3:42 PM, Tom Worster wrote: > what's a reliable way to detect that the sapi is cli, including in a > included scripts? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http

[PHP] detect cli sapi

2009-06-10 Thread Tom Worster
what's a reliable way to detect that the sapi is cli, including in a included scripts? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php