title: php header to download multiple files in loop
body: <p>I am creating pdf files on the fly and I want to download multiple files using php. Can I write header like this</p>
  
  <pre><code>&lt;?php
  header('Content-type: application/pdf');
  header('Content-Disposition: attachment; filename="downloaded.pdf"');
  readfile('original.pdf');
  ?&gt;
  </code></pre>
  
  <p>in while loop?</p>