PHP show results while running

view story

http://stackoverflow.com – I'm trying to display the results while PHP script is running, as example.. a really long loop, i want it to echo the results while the page is loading, I searched really a lot through this and i couldn't find the good answer, After googling i found people saying use ob_flush from this question .. but it didn't work, as well as enabling the implicit_flush from php.ini , still didn't work it only loads when the process is finished, i tried to run a for loop like this ob_start(); for($i=0; $i<500; $i++){ echo "hm\n"; ob_flush(); } ob_end_flush(); and still, didn't work.. it shows the (HowTos)