if(PHP_SAPI == 'cli') { } or if(php_sapi_name() == 'cli') { } On Wed, Jun 10, 2009 at 3:42 PM, Tom Worster <fsb@xxxxxxxxxx> 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://www.php.net/unsub.php > >