Powered by Blogger.

how to set cron


when you go for setting cron you will need to write 7 mandatory fields to set it as like --

1 2 3 4 5 php_path file path
1 -> minutes
2 -> hours
3 -> day of month
4 -> month
5 -> day of week
6 -> path of server side language that will execute script
7 -> path of file
example --
----------------------
* * * * * php abc.php => abc.php will run at every minute

0 0 1 * * php abc.php => abc.php will run at every first day of month

0 0 1 1 * php abc.php => abc.php will run at every first day of year

*/15 * * * * php abc.php => abc.php will run at every 15 minutes


* * * * 1-5 php abc.php => abc.php will run at every monday to froday.

No comments