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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -