'live' responses on time consuming php scripts?
<p>Many times i run time consuming PHP scripts that echo status updates like 'batch 1 finished', 'batch 2 finished' etc. </p>

<p>i've noticed that sometimes the server responds in a 'live' manner and you can see these status updates as the 'jobs' finish, printed on the browser.</p>

<p>But in other times you have to wait for the script to end, and the browser displays all the status updates at once.</p>

<p>When does the first happen? Is it the browser? Is it PHP setup? The way the script is coded?      </p>
