title: Using Zend_PDF and Zend Framework, Loading Libraries in PHP?
body: <p>I’m new to PHP, only having worked with a LAMP stack a little bit. I would like to use Zend_PDF to fill forms using PHP. I am having issues and believe I do not know how to properly load Zend Framework (or external libraries in general). Here is what I have currently:</p>
  
  <pre><code>&lt;?php 
  include_path='.:/var/www/html/lib/'; 
  require_once'.:/var/www/html/lib/Zend/Loader/ClassMapAutoloader.php';
  $pdf = Zend_Pdf::load('.:/var/www/html/forms/test.pdf');
  
  echo count($pdf-&gt;pages);
  ?&gt;
  </code></pre>
  
  <p>I was using <code>count();</code> as a test but I’m looking to use the <code>setTextField();</code> functions. I do not have a “/Loader/Autoloader.php” as referenced in some guides.</p>
  
  <p>How do I properly load the library so that I can use the <code>setTextField();</code> function?</p>
  
  <p>PHP 5.4.16,
  Zend Framework 2.4.4,
  CentOS7</p>