Login   Register  
PHP Classes
elePHPant
Icontem

Class: PHP Cron Daemon

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tim de Koning  >  PHP Cron Daemon  >  Download .tar.gz .zip  >  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
Related classes: , , , , , , ,
Version: 0.1
PHP version: 4.0
License: GNU General Public License (GPL)
All time users: 4093 users
All time rank: 580
Week users: 11 users
Week rank: 295
Picture of Tim de Koning
Author: Tim de Koning is available for providing paid consulting. Contact Tim de Koning .
Packages: 2 Browse this author's classes Browse this author's classes
Country: The Netherlands The Netherlands - PHP jobs in The Netherlands
Age: 31
All time rank: 3579 in The Netherlands The Netherlands
Week rank: 128 Up6 in The Netherlands The Netherlands Up
Innovation award
Innovation award
Nominee: 2x


  Detailed description  
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.

 

  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

  Rate classes User ratings   Dependencies   Trackback   Applications   Files Files  

  Innovation Award  
PHP Programming Innovation award nominee
October 2007
Number 2
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  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Not sure (56.2%)
Not sure (56.2%)
-
-
-
-
Insufficient (33.8%)
2124
Month:
Not yet rated by the users

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

  Trackback links  
Link Description
2 Days Old Data list / delete? Web control panel settings can be used to run scripts at set time intervals (cronjob)...

  Applications that use this class  
No application links were specified for this class.
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)
Plain text file daemon.php Appl. Full package file
Plain text file db.sql Data full SQL for db creation

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

  Files  /  Files folder image 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  /  lib  /  Files folder image 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  /  Files folder image log  
File Role Description
  Plain text file readme Data small readme file for the loggin

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.