title: PHP Excel Output for IE gives empty file
body: <p>I am trying to generate an excel file with php. This works fine in Firefox but with IE I am only getting an empty file. This is what I am doing basically:</p>
  
  <pre><code>header('Content-type: application/ms-excel');
  header('Content-Disposition:  inline; attachment; filename='.$filename);
  echo $data;
  </code></pre>
  
  <p>I have tried various header settings but no success. I have also tried to output the content as a text file, same result here. No content in IE.</p>
  
  <p>Any ideas?</p>
  
  <pre><code>header("Cache-Control: no-stor,no-cache,must-revalidate");
  header("Cache-Control: post-check=0,pre-check=0", false);
  header("Cache-control: private");
  header("Content-Type: application/octet-stream");
  header('Content-Disposition:  inline; attachment; filename='.$filename);
  header("Content-Transfer-Encoding: binary");
  header("Pragma: no-cache");
  header("Expires: 0");
  </code></pre>
  
  <p>--</p>
  
  <pre><code>header('Pragma: public'); 
  header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
  header('Last-Modified: '.gmdate('D, d M Y H:i:s') . ' GMT'); 
  header('Cache-Control: no-store, no-cache, must-revalidate');
  header('Cache-Control: pre-check=0, post-check=0, max-age=0');
  header ("Pragma: no-cache"); 
  header("Expires: 0"); 
  header('Content-Transfer-Encoding: none'); 
  header('Content-Type: application/vnd.ms-excel;');
  header("Content-type: application/x-msexcel");
  header('Content-Disposition:  inline; attachment; filename='.$filename);
  </code></pre>
  
  <p>Just two Options, also tried some other combinations.</p>
  
  <p>Thanks,
  Roland</p>