Re: Re: A question

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

 



On 4/16/05, trlists@xxxxxxxxxx <trlists@xxxxxxxxxx> wrote:
> On 16 Apr 2005 Khorosh Irani wrote:
> 
> > How I can find it in phpinfo() ?
> 
> Another (simpler) approach is:

not as versitile though. 

php_sapi_name() is better suited to situations where you will do
something differently depending on the sapi used. An example of this
would be form authentication when using CGI, and HTTP Authentication
when using Apache.

> 
>         echo php_sapi_name();
> 
> which will return 'cli', 'cgi', etc.
> 
> --
> Tom
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

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