Many times i run time consuming PHP scripts that echo status updates like 'batch 1 finished', 'batch 2 finished' etc.
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.
But in other times you have to wait for the script to end, and the browser displays all the status updates at once.
When does the first happen? Is it the browser? Is it PHP setup? The way the script is coded?