PHP detect if its run from a cron job?
I was looking for way to detect if PHP script was run from a shell (cron job), or if it was run from the browser. My Cron Job was working like * * * * * curl -s -o /dev/null https://www.svnlabs.com/allcron.php The best solution is to detect $_SERVER variable with a PHP script… The … Read more