Sachin Sachin - 8 months ago 108
PHP Question

How to set cron job url for codeigniter?

I am using Codeigniter for my website. I have to use cron job to run one of controller function. I am using route in website. And also I am not using index.php in url.

e.g., here welcome is my controller and show is function name of that controller.

I have used like this,

0 * * * * php /home/username/public_html/welcome/show

It is giving 'No such directory'

How can I set cron jon in CPANEL for above url.



I have used below cron

php /full-path-to-cron-file/cron.php /test/index


This works for me.

Thanks to all