When you echo out multiple lines and have lengthy operations in between them. Does the server send out data with each echo, or does it wait until the script is done executing to send out anything. I thought it was the former because thats why there was ob_start / output buffering for that specific purpose.
I ran the following script and the server does wait until its done? I could've sworn I've seen scripts where it echos one line at a time to the browser? Can anyone give me some clarification on this?
echo '1';
sleep(5);
echo '2';
sleep(5);
echo '3';
Thanks.