Cron Job for Codeigniter

In my practice there are two simple solutions.

First:

0 0 1 * * php /home/USER/public_html/index.php NAME-OF-CONTROLLER NAME-OF-METHOD

example -> php /home/User/public_html/index.php TestCron index

Second:

0 0 1 * * curl –silent URL-OF-THE-SCRIPT

example -> curl –silent http://maratonkata.nikolaynikolov.net/TestCron

Leave a Reply

Your email address will not be published.