What you are trying to achieve is incremental output to the browser from PHP.
Whether this is achievable, your server may depend on how you call PHP.
PHP in FastCGI
, , PHP FastCGI, Apache, PHP . FastCGI , PHP, . , PHP, , , , - .
, ob_end_flush() ( ob_flush()) flush() - , PHP , . , , PHP-.
PHP mod_php
mod_php, . flush(), , PHP . - Apache, mod_gzip, . , PHP script , ( set_time_limit() PHP), , , , .
, , . IE 1 . , Chrome . , , 1 2 .