I would like a php script to submit it's output to the browser and continue to run code. For example:
With the above script, from the browser's point of view, the page will have loaded instantly with the words "This is my output" and not for 100 seconds. The script however will continue to run code without any dependence on the browser's connection.
echo "This is my output";
ob_end_flush(); //The browser has completely loaded the page
//work goes here
ob_end_flush() did not work as I wanted it to, I don't know if that's even it's intended purpose. How can I go about doing this?