Right now in order to see the results, I have to wait until the entire code is done executing. It hangs until it\'s complete and stays loading. Once it\'s finished it shows
This one worked for me: (source)
function output($str) { echo $str; ob_end_flush(); ob_flush(); flush(); ob_start(); }