keerthi keerthi -4 years ago 151
PHP Question

How to run a cron job in codeigniter without using wget?

I want to run a cron job without using wget in code-igniter.
Am used like this

*/1 * * * * wget

It works successfully. But I am not interested to use wget.

Is there any another way to run this cod-igniter script?

Answer Source

You can try and use something like this:

* * * * * /usr/bin/php  /pathToTheApp/controller/function

But of course the /usr/bin/php should be your path to the PHP binaries and pathToTheApp should be the absolute path to your CI application.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download