Re: Detect local or remote call?

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

 



On 10/11/07, Marcus Mueller <marcus.mueller@xxxxxxxxxxxx> wrote:
>
> Anders Norrbring wrote:
> > Is there a good way to detect in a script if it's called locally from
> > command line, or via a remote browser?
>
> Check out <http://www.php.net/manual/en/function.php-sapi-name.php>.



much better:)

php > echo php_sapi_name();
cli

-nathan

[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