How to run a background task in PHP web application? -
this question has answer here:
- php: running scheduled jobs (cron jobs) 13 answers
i want run background scheduler in web application. scheduler check current time , if matches programmed time sends e-mail. how can create background scheduler ?
it depends if want run script in background via command line, can use exec
command: exec
or if want start thread, can use pthreads
if want have job executes @ time or in intervals, can set cronjob. this tutorial helpful, , if on linux can @ documentation.
Comments
Post a Comment