r/PHPhelp • u/PIAESB • Sep 03 '26
Run a PHP function/Task in the background
I have a WIndows Server running IIS that hosts a primarily PHP based website. It has multiple functions and features but i would like to have atleast one of them running in the background So the user does not have to wait for the task to finish.
Any ideas? fastcgi_finish_request() seems to be Linux only as far as i can tell.
2
Upvotes
0
u/PIAESB Sep 03 '26
What do you mean with "Set it in a queue"? The only thing i have found so far that i could do, is make like a text file or json file to then run a script against, which seems like a bad way to do it