title: Download .sql.gz file
body: <p>I have file on my website transferred from other server.</p>
  
  <p>Backup has .sql.gz format, when I download file via php code they do not work. Files are download but corrupted. I am on windows pc whereas its works on linux</p>
  
  <p>Please help me out how can I make them work on windows too, I am using the following code:</p>
  
  <pre><code>$fileurl=$path."/mysql/03/mydb1.sql.bz2";
  
  header("Content-Type: application/force-download");
  
  header("Content-Type: application/octet-stream");
  
  header("Content-Type: application/download");
  
  header("Content-Description: Download SQL Export");                 
  
  header('Content-Description: File Transfer');
  
  header('Content-Disposition: attachment; filename=test.sql.bz2');
  
  header('Content-Length: ' . filesize($fileurl));
  
  readfile($fileurl);
  </code></pre>