title: FPDF - How to fix the "Fatal error: Call to undefined method PDF::FPDF()" Using Write_html
body: <p>I am using this script <a href="http://fpdf.org/en/script/script50.php" rel="nofollow">http://fpdf.org/en/script/script50.php</a> and I am getting the error:</p>
  
  <p>Fatal error: Call to undefined method PDF::FPDF() in MyPath/html_table.php on line 55</p>
  
  <p>it is this call to <code>FPDF</code> that is throwing the exception : </p>
  
  <pre><code>$this-&gt;FPDF($orientation,$unit,$format);
  </code></pre>
  
  <p>I don't understand why, knowing that the pdf class extends FPDF <strong>and</strong> I have the fpdf.php file in the same directory as the html_table.php file, is there any way to fix this error? Thank you</p>