title: Dompdf works locally but not online
body: <p>I have problems with dompdf, it works perfectly on localhost, but absolutely not online : </p>
  
  <p>The pdf isn't generated but is displayed on the browser : my code : </p>
  
  <pre><code>&lt;?php ob_start();?&gt;
  //My code
  
  &lt;?php $html = ob_get_clean();
  
  require_once 'dompdf/autoload.inc.php';
  ?&gt;
  &lt;?php
  
  // reference the Dompdf namespace
  
  use Dompdf\Dompdf;
  
  // instantiate and use the dompdf class
  $dompdf = new Dompdf();
  $dompdf-&gt;loadHtml($html);
  
   // (Optional) Setup the paper size and orientation
  $dompdf-&gt;setPaper('A4', 'portrait');
  
  // Render the HTML as PDF
  $dompdf-&gt;render();
  
  // Output the generated PDF to Browser
  $dompdf-&gt;stream(); ?&gt;
  
  
  Votre paiement a bien été pris en compte. 
  
  &lt;?php 
  
  $output = $dompdf-&gt;output();
  file_put_contents("factures/".$nbr.".pdf", $output);
  
   ?&gt;
  </code></pre>