Even the browser may buffer its input before displaying it.
Several servers, especially on Win32, will still buffer the output from your script until it terminates before transmitting the results to the browser.