Is there a way to achieve inter-process (or threading) communication in PHP, but still keep everything run asynchronous?
I want to have a script that creates 4 processes and then terminates immediately. Each of the 4 processes should do an action and when finished it should notify someone (another script maybe?) that it finished. So I want to know when all of the 4 scripts are done, so I can update my status from retrieving to done.
Is this possible? Preferably without re-compiling PHP (I read this is required for working with threads), but I will do that if necessary.
Preferably without re-compiling PHP (I read this is required for working with threads)- really? Where? AFAIK it is not possible to multithread PHP, and if you have found a way I would dearly love to know about it...pcntl_forkto work.ignore_user_abort()and flush the output to the browser to allow the script to continue in the background.