Login   Register  
PHP Classes
elePHPant
Icontem

PHP Cron Daemon: Database driven PHP job scheduler like cron

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Tim de Koning
Name: Tim de Koning is available for providing paid consulting. Contact Tim de Koning .
Classes: 2 packages by
Country: The Netherlands The Netherlands
Age: 34
All time rank: 30810 in The Netherlands The Netherlands
Week rank: 584 Down17 in The Netherlands The Netherlands Down
Innovation award
Innovation award
Nominee: 2x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This package can be used to schedule the execution of task like the cron program.

First it starts a daemon process using Luca Mariano's PHP fork class to make the cron daemon script run like a standalone program.

It can parse a crontab file with Mick Sear's cron parser class and extract the job scheduling definitions into a MySQL database table.

When it is time to run a scheduled job, it executes the job command in the crontab definition as PHP code as a separate process.

The output of the job PHP code is also stored in a database table.

  Classes of Tim de Koning  >  PHP Cron Daemon  >  Download Download .zip .tar.gz  >  Support forum Support forum (4)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP Cron Daemon
Base name: phpcrondaemon
Description: Database driven PHP job scheduler like cron
Version: 0.1
PHP version: 4.0
License: GNU General Public License (GPL)
All time users: 5034 users
All time rank: 473
Week users: 1 user
Week rank: 1420 Down
 
  Groups   Rate classes User ratings   Dependencies  
  Trackback   Applications   Files Files  

  Groups  
Group folder image Time and Date Time and date values, formats and conversion View top rated classes
Group folder image Systems administration System configuration and management View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
October 2007
Number 2


Prize: One copy of the Zend Studio
Cron is a standard tool available in all Linux/Unix distributions for scheduling tasks that must be executed regularly.

This package provides a full implementation of the Cron tool that works under any platform supported by PHP that has the pcntl_extension.

It manages the execution of scheduled PHP scripts instead of running regular executable programs like the original cron tool.

PHP scripts are executed using forked processes to allow the execution of multiple scheduled scripts at the same time.

Manuel Lemos

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Not sure (50%) Sufficient (65%) - - - - Insufficient (31%) 2324
Month: Not yet rated by the users

  Packages needed by this class  
Class DownloadWhy it is needed Dependency
Thread Download .zip .tar.gz This class forms the actual thread-generation. Is included by default Required
PHP Cron Parser Download .zip .tar.gz This classes is included for extracting cron information from the definitions Required

  Pages that reference this package  
2 Days Old Data list / delete?
Web control panel settings can be used to run scripts at set time intervals (cronjob)...

Latest pages that reference packages Latest pages that reference packages


  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Files folder imagekill (1 file)
Files folder imagelib (3 files, 1 directory)
Files folder imagelog (1 file)
Accessible without login Plain text file daemon.php Appl. Full package file
Accessible without login Plain text file db.sql Data full SQL for db creation

  Files folder image Files  /  kill  
File Role Description
  Accessible without login Plain text file readme Data small readme file for the kill command

  Files folder image Files  /  lib  
File Role Description
Files folder imagecron (4 files)
  Plain text file miniDb.php Class small db abstraction lib (based on ADODB)
  Plain text file phpfork.php Class original (slightly modified) class PHP Fork
  Plain text file worker Class the worker processing class

  Files folder image Files  /  lib  /  cron  
File Role Description
  Plain text file daemon.php Class actual cron daemon
  Plain text file job.php Class actual job definition for the database
  Plain text file parser.php Class crontab-like parser script based on Nikol S
  Plain text file tab.php Class crontab definition for database

  Files folder image Files  /  log  
File Role Description
  Accessible without login Plain text file readme Data small readme file for the loggin

Install with Composer Install with Composer - Download Download all files: phpcrondaemon.tar.gz phpcrondaemon.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.