aboutsummaryrefslogtreecommitdiffstats
path: root/output-flushing-test.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2015-12-26 16:37:25 +0100
committerThomas Lange <code@nerdmind.de>2015-12-26 16:37:25 +0100
commit6658708bdd775a6ab1352e0c36b4c7deafc52e84 (patch)
treee95ef6b6fb67e0d1ca42221e94631fa6123b6f22 /output-flushing-test.php
parent903100ecb99ab926d4ac3be4eba11ea1c9800e12 (diff)
downloadbigpipe-6658708bdd775a6ab1352e0c36b4c7deafc52e84.tar.gz
bigpipe-6658708bdd775a6ab1352e0c36b4c7deafc52e84.tar.xz
bigpipe-6658708bdd775a6ab1352e0c36b4c7deafc52e84.zip
Multiple updates; new feature PhaseDoneJS
Diffstat (limited to 'output-flushing-test.php')
-rwxr-xr-xoutput-flushing-test.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/output-flushing-test.php b/output-flushing-test.php
new file mode 100755
index 0000000..410208f
--- /dev/null
+++ b/output-flushing-test.php
@@ -0,0 +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]';
+?> \ No newline at end of file