title: Apache settings and PHP headers (download a csv)
body: <p>I am trying to create a .csv report using PHP headers. The headers I am using are here:</p>
  
  <pre><code>header("Content-type: application/octet-stream");
  header("Content-Disposition: attachment; filename=certificates.csv");
  header("Pragma: no-cache");
  header("Expires: 0");
  </code></pre>
  
  <p>Originally, the code outputted a .xls file, but it was essentially html output. I did not write this original code so all I did was change the output and the second header above. For some reason, this works fine on my staging server but not the production server. The permissions are the same so I was thinking maybe it had something to with the Apache settings. Any ideas?</p>