Buffered echo


function echoBufferedOutput($output) {
echo $output . chr(10);
//this is for the buffer achieve the minimum size in order to flush data
echo str_repeat(' ', 1024 * 64);
}

@ini_set('zlib.output_compression', 0);
header('Content-type: text/html; charset=utf-8');
ob_implicit_flush(true);

echoBufferedOutput('abc');