title: Php downloading file doesn't work with Firefox
body: <p>SOLVED, due to a bootstrap known issue (<a href="https://stackoverflow.com/questions/16280684/nesting-a-inside-button-doesnt-work-in-firefox">Nesting &lt;a&gt; inside &lt;button&gt; doesn&#39;t work in Firefox</a>).</p>
  
  <p>I'm trying to simply force a download of a file and it works fine on Chrome &amp; Safari, but not on Firefox.</p>
  
  <p>I've download.php file to download my file (used in a "a href"):</p>
  
  <pre><code>&lt;?php
  
  $filename="myFile.pdf";
  $file="../content/$filename";
  $len = filesize($file); // Calculate File Size
  if (ob_get_contents()) ob_end_clean();
  header("Pragma: public");
  header("Expires: 0");
  header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
  header("Content-Description: File Transfer");
  header("Content-Type:application/pdf"); // Send type of file
  $header="Content-Disposition: attachment; filename=$filename;"; // Send File Name
  header($header );
  header("Content-Transfer-Encoding: binary");
  header("Content-Length: ".$len); // Send File Size
  @readfile($file);
  exit;
  
  ?&gt;
  </code></pre>
  
  <p>It's used with :</p>
  
  <pre><code>&lt;a class="myFileClass" href="download.php"&gt;Download&lt;/a&gt;
  </code></pre>
  
  <p>So with Chrome &amp; Safari, when I click on the download link, the file is downloaded !
  But with Firefox, nothing happens.</p>
  
  <p>Any idea of this curious issue ? </p>
  
  <p>Thanks by advance.</p>