|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-09-02 09:56 UTC] zeev at cvs dot php dot net
[2004-06-08 21:43 UTC] Johnfontana2003 at yahoo dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 00:00:01 2025 UTC |
Some nice feature to add, I think alot folks would like internal PHP task scheduler, and abbility to submit tasks from within php code, i know you can use cron for that , but to make it os independent something like that should exists inside of PHP. It has to be ran as daemon i think and php should have set of functions to control it like: task_id = task_create(PHP script,period,start_datetime,end_datetime); array tasks = tasks_list(); task_remove(task_id); where period could be "WEEKLY"/"DAYLY"/"HOURLY"/"MONTHLY"/"YEARLY" And could be also some other stuff, so just using: task_create("http://www.test.com/tasks/report.php","WEEKLY",time(),NULL); will submit task to scheduler asking it to execute report.php each week("WEEKLY") starting from right now (time()) until cancel (NULL) Thanks