Re: detect cli sapi

From: Date: Wed, 10 Jun 2009 19:43:58 +0000
Subject: Re: detect cli sapi
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-293914@lists.php.net to get a copy of this message
if(PHP_SAPI == 'cli') { } or if(php_sapi_name() == 'cli') { } On Wed, Jun 10, 2009 at 3:42 PM, Tom Worster <fsb@thefsb.org> 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 > >

« previous php.general (#293914) next »