aboutsummaryrefslogtreecommitdiff
path: root/simplecache
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-03 18:32:07 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-03 18:32:07 +0000
commitf2e9012d54dfc2766daaccbfec9080d42d318e1c (patch)
treeb8efe80491f998f482757f3561138e0d64e7f16a /simplecache
parent5ed8cbee1697d8402cbe11de40551fdcc80dbea7 (diff)
downloadelgg-f2e9012d54dfc2766daaccbfec9080d42d318e1c.tar.gz
elgg-f2e9012d54dfc2766daaccbfec9080d42d318e1c.tar.bz2
Echoing the large output buffer in chunks
git-svn-id: https://code.elgg.org/elgg/trunk@3048 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'simplecache')
-rw-r--r--simplecache/view.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/simplecache/view.php b/simplecache/view.php
index afc0f89ae..8d37a0cdc 100644
--- a/simplecache/view.php
+++ b/simplecache/view.php
@@ -60,11 +60,12 @@
header("Content-Length: " . strlen($contents));
}
}
- }
-
- // echo $contents;
- $splitString = str_split($contents, 8192);
- foreach($splitString as $chunk)
- echo $chunk;
+ }
+
+ $split_output = str_split($contents, 8192);
+
+ foreach($split_output as $chunk)
+ echo $chunk;
+
?> \ No newline at end of file