Scheduling tasks after polling the database php -


i building web app in php used schedule tasks in future. in background supposed poll database every 2 min see if there upcoming task. how implement polling. javascript solution not helpful user can on of pages on webapp, system should keep pooling db.

cron 1 way still have poll database create cron job. best way implement it?

thanks

create cron job executed once every x minutes , make job check db. if there new upcoming task, make job launch it.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -