Skip to content
biozshock edited this page Sep 14, 2010 · 3 revisions
  1. Download library from github repository git://github.com/biozshock/crontab.git
  2. If you are familiar with phpunit you can test library. Tests are located in tests subdirectory
  3. Copy config/crontab.php and libraries/crontab.php
  4. Setup config/crontab.php
  5. Use this library



Crontab library config file



cronfile

Path to cronfile library will write all jobs

php_path

Path to PHP executable

crontime

Crontab library default format for date() function

cli_path

PHP cli scripts path

time_offset

This config variable can be used when your server has different timezone from timezone of tasks you want to be cheduled. e.g. server is in -5 timezone. backend in +1 timezone. in backend you setting cronjob for 00:00:00, but for server this would be 14:00:00
Clone this wiki locally