title: how to convert dynamic php file to pdf?
body: <p>I try to convert dynamic php database file to pdf.
  I try with DOMPDF, but I have a problem with defining the string. I'll explain:</p>
  
  <p>Here is a 'hello world' script for dompdf:</p>
  
  <pre><code>require_once(&amp;quot;dompdf_config.inc.php&amp;quot;);
  $html =
      '&lt;html&gt;&lt;body&gt;'.
      '&lt;p&gt;Hello World!&lt;/p&gt;'.
      '&lt;/body&gt;&lt;/html&gt;';
  $dompdf = new DOMPDF();
  $dompdf-&gt;load_html($html);
  $dompdf-&gt;render();
  $dompdf-&gt;stream("hello_world.pdf");
  </code></pre>
  
  <p>The thing is that instead of a simple </p>
  
  <pre><code>'&lt;html&gt;&lt;body&gt;'.
  '&lt;p&gt;Hello World!&lt;/p&gt;'.
  '&lt;/body&gt;&lt;/html&gt;' 
  </code></pre>
  
  <p>I have a long php file full of functions and sql queries. because of it I have inside it many ",',; e.t.c signs. I also have a javascript dynamic chart (jqplot) in this page.</p>
  
  <p>So instead of pdf file I get errors errors errors...</p>
  
  <p>Does anyone has a solution for this?</p>
  
  <p>I will really appreciate any answer, and will be really really thankful for a solution...</p>