title: FPDI cannot initialize new FPDI() object
body: <p>I'm trying to remove the second page from multiple pdfs. I get a 500 error on this page when I include the line <code>$pdf = new FPDI();</code> and anything afterwards. The path to the autoload.php is right, so I do not know what I am doing wrong.</p>
  
  <p>I cut out array declarations for space. There is nothing else in the doc other than that. </p>
  
  <pre><code>&lt;?php
  
  require_once('includes/fpdi/autoload.php');
  ini_set('memory_limit', '1024M');
  ini_set('max_execution_time', 120); //
  
  $i = 0;
  foreach ($arrFiles as &amp;$value) {
  
      $destination=fopen($documentroot."attachments/".$FileNames[$i],"w");
      $remote = $arrFiles[$i];
      $local  = $documentroot."attachments/".$FileNames[$i];
      copy($remote, $local);
      fclose($destination);
  
       $pdf = new FPDI();
       // $pageCount = $pdf-&gt;setSourceFile($documentroot."attachments/".$FileNames[$i]);
       //$templateID = $pdf-&gt;importPage(1);
       //$pdf-&gt;getTemplateSize($templateID);
       //$pdf-&gt;addPage();
       //$pdf-&gt;useTemplate($templateID);
       // $pdf-&gt;Output();
  }
  ?&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
   Hello
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>