Calling ob_flush() and flush(), yet browser doesn't show any output until script finishes

后端 未结 12 2808
离开以前
离开以前 2020-12-07 00:55

Hi Please View Below Code :

\\n\";
for( $i = 0 ; $i < 10 ; $i++ )
{
    echo \"$i
\\n\";
12条回答
  •  伪装坚强ぢ
    2020-12-07 01:00

    On my system it appears that FF4 needs more than 256 bytes to start rendering what is arriving from the server side, then i resolved with this at the beginning:

    while (@ob_end_flush());
    echo(str_repeat(' ',1024));
    // ...etc...
    

提交回复
热议问题