title: php echo gzipped file cutting off half way through
body: <p>I am trying to send gzipped content from the server. I have gzipped a file (<a href="https://docs.google.com/leaf?id=0B2-EDNVQTZIdMDI3MmM5ODktODdmMi00MmU2LTkyNmEtZmRmNjQ4Mzk1ZTQw&amp;hl=en_US" rel="nofollow">get it here</a>), and am trying to <code>echo</code> it out I have set the right headers (I think). The output starts of correctly, but only outputs the first so many lines.</p>
  
  <pre><code>&lt;?php
    $file = file_get_contents('kendo/js/kendo.all.js.gz');
    header('Content-Encoding: gzip');
    header('Content-Length: '.strlen($file)); # gets the correct filesize of my gzipped file
    echo $file;
  ?&gt;
  </code></pre>
  
  <p>Is there something wrong with my method?</p>