Re: Re: A question
| From: | Rory Browne | Date: | Sat, 16 Apr 2005 21:30:50 +0000 |
| Subject: | Re: Re: A question | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-213215@lists.php.net to get a copy of this message | ||
On 4/16/05, trlists@clayst.com <trlists@clayst.com> 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
>
>