On 4/16/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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

Reply via email to