How run zend framework action (inside index controller) by cron every 12 hours?
The case:
-
I have basic(no modules) zend project (1.11) that created by zf tool.
-
Inside main IndexController exist cronAction() – url http://mydomain/index/cron.
-
Need to run cronAction() once per 12 hours by cron.
Thanks
Find the crontab file and add this line:
You can also do it with other tools, such as lynx or wget, not necassarily curl – the above is just an example.