How can I find out in PHP if the script run from Apache of from crontab?
9368
In PHP, how to detect the execution is from CLI mode or through browser ?
121833
Where is my crontab file?
74735
Asynchronous shell exec in PHP
82235
Use PHP to create, edit and delete crontab jobs?
39125
Add lines to cron from script
95193
Find out current working directory of a running process?
28302
How is % special in crontab?
3099
Add something to crontab programmatically (over ssh)
143546
Using the system date / time in a Cron Script
3517
Where is the cron / crontab log?
9870
How to set a cron job to run a shell script?
107365
"cron" processes spawning and piling up, but no crontab
22820
Why scripts run as user but not as a cron?
69580
How can I show notify-send messages triggered by crontab?
143750
Simplest way to profile a PHP script
76584
System Crontab or Root Crontab
4293
How do you debug PHP scripts?