Possible Duplicate:
What is the canonical way to determine commandline vs. http execution of a PHP script?
Is there some "conditional" tags in php for cronjob? What i want to make:
if(cron_job_executing_this_php_file)
{
do something
}
elseif($_SERVER['REMOTE_ADDR'] = "blah.bl.ah.bl")
{
do something
}
Can i do something like this?