How to run a background task in PHP web application? -


this question has answer here:

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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -