|Info||View files (3)||Download .zip||Reputation||Support forum (3)||Blog|
|Last Updated||Ratings||Unique User Downloads||Download Rankings|
|2007-03-17 (7 years ago)||65%||Total: 3,448 This week: 2||All time: 911 This week: 869|
|virtualcron 0.1||GNU Lesser General Publ...||4.0||Time and Date|
It creates a control file to keep track the last time the task was scheduled.
The class can check the control file last modification time to determined whether it passed a given period of time since the last time the task was run.
If the given interval time has passed since the last run, the class recreates the control file and returns true to inform the application that is time to run the task again.
Prize: One downloadable copy of PhpED Professional
|Many Web applications need to execute periodical tasks, like sending newsletters, processing pending e-commerce orders, etc..
Some operating systems come with programs, like cron or at, to execute scheduled tasks. However, under some Web hosting environments these programs cannot be used.
This class provides an alternative solution that can be used in more restricted hosting environments.
It uses files to keep track of the last time when a periodical task was executed.
The site Web page scripts can use the class to check these files. The class can tell when it is time to execute a task again. When it is time, the same script can execute the scheduled task without depending on external programs.
|Version Control||Unique User Downloads||Download Rankings|
|This week:||2||This week:||869|
|User Ratings||User Comments (3)|