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

2005-01-19 Thread Richard Lynch
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 s

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

2005-01-19 Thread Bret Hughes
On Wed, 2005-01-19 at 07:47, 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. > > -- I do not know what the definitive answer is but there are a bunch of environment differences.

[PHP] Need best way to determine if cronjob or external browser called my script

2005-01-19 Thread Al
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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php