title: PHP Force download not working
body: <p>Here is my problem. I am trying to download a file using header. Here is my code:</p>
  
  <pre><code>$content_type = mime_content_type('uploads/MyBBIntegrator_v1.3.1.zip');
  $file = 'uploads/MyBBIntegrator_v1.3.1.zip';
  header("Cache-Control: public");
  header('Content-type: application/octet-stream');
  header("Content-Description: File Transfer");
  header('Content-Disposition: attachment; filename="MyBBIntegrator_v1.3.1.zip');
  header("Content-Transfer-Encoding: binary");
  header('Expires: 0');
  header('Pragma: public');
  header('Content-Length: ' . filesize($file));
  readfile('uploads/MyBBIntegrator_v1.3.1.zip');
  </code></pre>
  
  <p>However, the only result of this is that the page displays the contents of the file (it is a text file) or a string of strange symbols if the file is image/zip/exe etc</p>
  
  <p>What should I do to solve this problem?</p>