Created
September 14, 2016 20:31
-
-
Save davidsword/e62d8788a773f90086dd5daddce6eca9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
@ini_set('zlib.output_compression',0); | |
@ini_set('implicit_flush',1); | |
@ob_end_clean(); | |
set_time_limit(0); | |
header( 'Content-type: text/html; charset=utf-8' ); | |
ob_implicit_flush(1); | |
for($i=0; $i<10; $i++){ | |
echo $i; | |
//this is for the buffer achieve the minimum size in order to flush data | |
echo str_repeat(' ',1024*64); | |
sleep(1); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment