Display output in parts in PHP

前端 未结 6 863
春和景丽
春和景丽 2020-11-29 11:59

I have this code:

\";          
    usleep(100000); 
}

?>

I would like to

6条回答
  •  日久生厌
    2020-11-29 12:26

    Disable all output buffering and pad the output:

    while(@ob_get_clean());
    
    for($i = 0; $i<30; $i++)
    {
        echo str_pad("$i
    ",4096); usleep(100000); }

    Also, this won't work, if your Apache is using mod_deflate and you have gzip-compression for text/html files.

提交回复
热议问题