aboutsummaryrefslogtreecommitdiffstats
path: root/output-flushing-test.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2016-04-22 21:17:53 +0200
committerThomas Lange <code@nerdmind.de>2016-04-22 21:17:53 +0200
commit7a49346f8069d814c51af2e0cefcc6e66fe9826e (patch)
tree1de48b8be3e12ec4ea8d6695f99217d39de26ebf /output-flushing-test.php
parent74d01962a6f77eb2b8138864f18ed53eb136c432 (diff)
downloadbigpipe-7a49346f8069d814c51af2e0cefcc6e66fe9826e.tar.gz
bigpipe-7a49346f8069d814c51af2e0cefcc6e66fe9826e.tar.xz
bigpipe-7a49346f8069d814c51af2e0cefcc6e66fe9826e.zip
Multiple updates with async demo.
Diffstat (limited to 'output-flushing-test.php')
-rwxr-xr-xoutput-flushing-test.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/output-flushing-test.php b/output-flushing-test.php
index 410208f..faaf9bc 100755
--- a/output-flushing-test.php
+++ b/output-flushing-test.php
@@ -1,12 +1,12 @@
-<?php
-header('Content-Type: text/plain; charset=UTF-8');
-
-echo "[INFO: If you see the single blocks successively, then the output flushing on your server works. If not, and you see it all at once, your server need to be configured to use output flushing.]\n\n";
-
-for($i = 1; $i <= 8; $i++) {
- echo '[BLOCK: '.$i.']'."\n".str_repeat('[0]', 1500)."\n\n\n";
- flush(); usleep(750000);
-}
-
-echo '[ALL BLOCKS LOADED]';
+<?php
+header('Content-Type: text/plain; charset=UTF-8');
+
+echo "[INFO: If you see the single blocks successively, then the output flushing on your server works. If not, and you see it all at once, your server need to be configured to use output flushing.]\n\n";
+
+for($i = 1; $i <= 8; $i++) {
+ echo '[BLOCK: '.$i.']'."\n".str_repeat('[0]', 1500)."\n\n\n";
+ flush(); usleep(750000);
+}
+
+echo '[ALL BLOCKS LOADED]';
?> \ No newline at end of file