Re: Detect local or remote call?
| From: | Marcus Mueller | Date: | Thu, 11 Oct 2007 18:36:34 +0000 |
| Subject: | Re: Detect local or remote call? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263114@lists.php.net to get a copy of this message | ||
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>.
Greetings
m.