CRON - Call PHP Script


#1

Hi,

I have simple question, how do I call my script at some interval time using cron job ? And I use CodeIgniter for the framework.

Thanks,

Supernova

Need great promo codes ? Check on this link.


#2

If the script is web accessible, I call it with a curl:

10 * * * * /usr/bin/curl http://www.example.com/script.php >/dev/null 2>&1

Or you can call it directly: /usr/local/bin/php ~/directory/script.php

-Scott


#3

If you are new to crotab job, this will be helpful
http://wiki.dreamhost.com/Crontab

$50 off and 3 free domains with code: [color=#CC0000]DH3[/color] Sign Up NOW or More Codes Here


#4

Hi Scott,

This is very helpful.

Thanks,

Supernova

Need great promo codes ? Check on this link.