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
I had to put both ob-flush and flush as shown in this example:
for($i=10; $i > 0; $i--) { echo "$i ..."; flush(); ob_flush(); sleep(1); }