Re: detect cli sapi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux