title: How to load Zend classes when running php script by command lines
body: <p>I have a php script needing Zend classes. It can be run in a browser, but errors occur when run the script by command lines in command prompt. </p>
  
  <pre><code>require_once 'Zend/Loader.php'; // It can work in a browser but failed by command lines
  </code></pre>
  
  <p>I also tried:</p>
  
  <pre><code>require_once 'C:\wamp\www\zf_project\library\Zend\Loader.php';
  </code></pre>
  
  <p>and</p>
  
  <pre><code>ini_set('include_path', 
  ini_get('include_path') . 
  PATH_SEPARATOR . 
  dirname(__FILE__). DIRECTORY_SEPARATOR. 'library');
  </code></pre>
  
  <p>But failed.</p>
  
  <p>Then I need to load the class:</p>
  
  <pre><code>Zend_Loader::loadClass('Zend_Rest_Client');
  </code></pre>
  
  <p>How can I use Zend classes?</p>
  
  <p>Thanks in Advance!</p>