title: PHP Zip File Empty?
body: <p>I have a script that creates a zip files from files in a certain directory. After Download, for a lot of users - the zip file is empty. However, for other users - the file isn't empty. Is it something I'm doing wrong?</p>
  
  <pre><code>header('Content-type: application/zip');
  header('Content-Disposition: attachment; filename="'.$id.'.zip"');
  header('Cache-Control: private');
  ob_clean();
  flush();
  readfile("".$id.".zip");
  exit;
  </code></pre>