title: loading dynamic html into dompdf using php
body: <p>hello i'm working on a script which will dynamically load html using <code>file_get_contents</code> and will generate and save the pdf on the server but somehow my php file is giving me <strong>500 internal server error</strong> so is there any other way to load the html into dompdf
  here is my code</p>
  
  <pre><code>&lt;?php
  error_reporting(E_ALL);
  
  require("includes/check_auth_user.php");
  require("includes/dbconnect.php");
  include ('includes/function.php');
  require_once("dompdf_config.inc.php");
  
  $mvouch = $_REQUEST["vouchno"];
  $dompdf = new DOMPDF();
  $html =file_get_contents("http://www.myurl.com/project/file_to_be_loaded.php?vouchno=$mvouch");
  $dompdf-&gt;load_html($html);
  $dompdf-&gt;render();
  $output = $dompdf-&gt;output();
  file_put_contents("/files/report.pdf", $output);
  echo "&lt;h1&gt;DONE!!!&lt;/h1&gt;";
  ?&gt;
  </code></pre>