Detecting CLI/CRON support
Posted: Mon Nov 12, 2007 5:58 pm
Using strictly PHP is there a reliable method for detecting/updating cron? I want to show a message indicating whether it's enabled or not as my application needs cron functionality.
Also, if cron is not available (shared hosts, etc) I would like to check for the possibility of using CLI to carry out the actions instead. Is there a php.ini setting which I can check that will tell me where and whether or not CLI is possible?
Cheers
Also, if cron is not available (shared hosts, etc) I would like to check for the possibility of using CLI to carry out the actions instead. Is there a php.ini setting which I can check that will tell me where and whether or not CLI is possible?
Cheers