I want to write a script which calls some code but continues to run after calling it. E.g
echo 'A and B succesfully called';
I want function the output to be displayed immediately rather than wait for completion of processing of both the functions. Any idea how to achieve this in PHP?
Best How To :
This is somehow possible if you don't want to display the function's output later.
Instead of using
Content-Length: 0 you can also print your real content length and output something. The browser will then see that it read all contents (at least he assumes that) and your script will keep running.