You are here: Re: [PHP] Need best way to determine if cronjob or external browser called my script « PHP « IT news, forums, messages
Re: [PHP] Need best way to determine if cronjob or external browser called my script

Posted by Richard Lynch on 01/20/05 00:55

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация