Re: Detect local or remote call?

From: Date: Thu, 11 Oct 2007 18:55:43 +0000
Subject: Re: Detect local or remote call?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-263116@lists.php.net to get a copy of this message
On Thu, 2007-10-11 at 19:58 +0200, 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? I've always used if( isset( $_SERVER['SERVER_PORT'] ) ) { return 'web'; } Cheers, Rob. -- ........................................................... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ...........................................................

« previous php.general (#263116) next »