From 5ed8cbee1697d8402cbe11de40551fdcc80dbea7 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 3 Mar 2009 18:22:43 +0000 Subject: Splitting output into chunks. git-svn-id: https://code.elgg.org/elgg/trunk@3047 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/icondirect.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mod/profile/icondirect.php') diff --git a/mod/profile/icondirect.php b/mod/profile/icondirect.php index cf67fae04..1bfa51fee 100644 --- a/mod/profile/icondirect.php +++ b/mod/profile/icondirect.php @@ -91,7 +91,9 @@ header("Pragma: public"); header("Cache-Control: public"); header("Content-Length: " . strlen($contents)); - echo $contents; + $splitString = str_split($contents, 8192); + foreach($splitString as $chunk) + echo $chunk; } } else { mysql_close($mysql_dblink); -- cgit v1.2.3