Index: includes/mythbackend.php =================================================================== RCS file: /var/lib/mythcvs/mythweb2/includes/mythbackend.php,v retrieving revision 1.3 diff -u -d -r1.3 mythbackend.php --- includes/mythbackend.php 17 Aug 2003 20:23:02 -0000 1.3 +++ includes/mythbackend.php 18 Aug 2003 16:26:17 -0000 @@ -81,7 +81,17 @@ // Read the response header to find out how much data we'll be grabbing $length = rtrim(fread($fp, 8)); // Read and return any data that was returned - return fread($fp, $length); + $ret = ''; + while($length > 0) { + $size = min(8192, $length); + $data = fread($fp, $size); + if (strlen($data) < 1) + break; // EOF + $ret .= $data; + $length -= strlen($data); + } + + return $ret; } }