So I'm doing some experimenting with PHP/Apache. Let's say I have this code.
<div>DIV 1</div>
<?php sleep(2); ?>
<div>DIV 2</div>
<?php sleep(2); ?>
<div>DIV 3</div>
<?php sleep(2); ?>
<div>DIV 4</div>
<?php sleep(2); ?>
For some reason on my local apache webserver all the data appears in the browser at once, after all 4 sleep()s have been executed (8 seconds).
However if I run it on my host's server, the data is echo-ed to the browser in real time. As in... div1 appears, after 2 seconds div 2 appears etc.
Why is that? Is this some setting in Apache?