Welcome Guest, Not a member yet? Register   Sign In
codeigniter and cpanel and cronjob
#1

[eluser]donald.tbd[/eluser]
Is it possible to put a codeigniter function into a cronjob in cpanel?

This is how i put in a regular file:
/usr/local/bin/php -f /home/codeigniter/public_html/cron.php

But if would be to try something like this:
/usr/local/bin/php -f /home/projekti/public_html/index.php/cron/cron

... i get an error "Could not open input file".

Any thoughts? Smile
#2

[eluser]donald.tbd[/eluser]
I found a way to access the controller by http:
"wget -O - -q -t 1 http://cron.com/cron/cron"

I dont know what that means but it works Big Grin
#3

[eluser]InsiteFX[/eluser]
Search the WIKI for Cron

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB