How to load Zend classes when running php script by command lines
问题 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. require_once 'Zend/Loader.php'; // It can work in a browser but failed by command lines I also tried: require_once 'C:\wamp\www\zf_project\library\Zend\Loader.php'; and ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . dirname(__FILE__). DIRECTORY_SEPARATOR. 'library'); But failed. Then I need to load the class: Zend_Loader::loadClass(