Reply content:
'.str_repeat(' ', 1024*4); ob_flush(); flush(); sleep(1);}echo 'Done.';ob_end_flush();
Displays 1 rows every 1 seconds:
Array ([0] = 0 [1] = 1 [2] = 2 [3] = 3 [4] = 4 [5] = 5 [6] = 6 [7] = 7 [8] = 8 [9] =& Gt 9) Array ([0] = 1 [1] = 2 [2] = 3 [3] = 4 [4] = 5 [5] = 6 [6] = 7 [7] = 8 [8] = 9 [9] + 0) Array ([0] = 2 [1] = 3 [2] = 4 [3] = 5 [4] = 6 [5] = 7 [6] = 8 [7] = 9 [8] => ; 1 [9] = 0) Array ([0] = 3 [1] = 4 [2] = 5 [3] = 6 [4] = 7 [5] = 8 [6] = 9 [7] = 2 [8] = 1 [9] = 0) Array ([0] = 4 [1] = 5 [2] = 6 [3] = 7 [4] = 8 [5] = 9 [6] = 3 [7] => ; 2 [8] = 1 [9] = 0) Array ([0] = 5 [1] = 6 [2] = 7 [3] = 8 [4] = 9 [5] = 4 [6] = 3 [7] + 2 [8] = 1 [9] = 0) Array ([0] = 6 [1] = 7 [2] = 8 [3] = 9 [4] = 5 [5] = 4 [6] => ; 3 [7] = 2 [8] = 1 [9] = 0) Array ([0] = 7 [1] = 8 [2] = 9 [3] = 6 [4] = 5 [5] = 4 [6] = = 3 [7] => 2 [8] = 1 [9] = 0) Array ([0] = 8 [1] = 9 [2] = 7 [3] = 6 [4] = 5 [5] = 4 [6] = = 3 [7] = 2 [8] = 1 [9] = 0) Array ([0] = 9 [1] = 8 [2] = 7 [3] = 6 [4] = 5 [5] = 4 [6] = 3 [7] = 2 [8] = 1 [9] + 0) done.
Open the output control buffer, keep ob_flush (); Flush (), and you can continuously output the content within a PHP request that you can initiate via Ajax.
Using the Chrome browser, press F12 to see the packet.
There are many ways to implement it, you can use Ajax, or you can use WebSocket. Specifically, you can see the Discuz code.
Ajax..