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

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

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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