Is there any way I can detect if my script is being run via a Cron Job or via Browser? Is there any specific cron job http header or user agent?
Edit: I am just trying to make a script which can be run directly (via URL) and can also be scheduled as cron job. Whenever executed, I just want to detect if the script is being run by a cron job and do some stuff in a condition.