Re: Need best way to determine if cronjob or external browser called my script

From: Date: Wed, 19 Jan 2005 22:55:31 +0000
Subject: Re: Need best way to determine if cronjob or external browser called my script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-206787@lists.php.net to get a copy of this message
Al wrote: > I'm working on a script that can be initiated by a cronjob or from a > browser. > > I want the script to act differently depending on which one called it. Another solution: http://us2.php.net/php-sapi-name I personally think this is the cleanest and most maintainable solution posted so far, but YMMV. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#206787) next »