|Ratings|| ||Unique User Downloads|| ||Download Rankings|
| 74%||Total: 492 This week: 1||All time: 5,821 This week: 238|
This package can run scheduled tasks defined in a crontab file.
It can parse a file in the crontab format that defines the times and the command lines strings of programs that are scheduled to run regularly.
The package can start parallel processes to run the scheduled tasks when time comes.
PHPCron is a daemon to run tasks scheduled cron written in php, works similar to crontab
PHP version 5.1 or higher.
Module installed "pcntl" and "posix".
All functions "pcntl" and "posix" removed from the directive "disable_functions".
Download the archive and extract.
Copy the folder "src" to the root of your project.
Create an entry in the file tasks/main.cron analogously to Example
/2 * php /var/www/data/public/cron/test.php test1
/5 * php /var/www/data/public/cron/test.php test2
More information about cron entry can be found here
Running the daemon
To start the daemon requires the console to run the script:
php /path/to/crondaemon.php parameter
Connecting and starting the demon in your code
$cron = new CronDaemon($argv);
||Applications that use this package
If you know an application of this package, send a message to the author to add a link here.