【发布时间】:2010-07-13 22:35:27
【问题描述】:
我正在尝试使用 PEAR 的 Text_Password 类,但不确定如何包含它。
我已经安装了 PEAR。而且我猜它已经把类放在 PHP 目录的某个地方。我的 .htaccess 文件中有这个
php_value include_path .:/Library/WebServer/Documents/phpweb20/include
这就是为什么我猜它没有接他们。有谁知道我可以如何包含 PEAR 类?
这是我收到的错误消息:
Warning: include_once(Text/Password.php) [function.include-once]: failed to open stream: No such file or directory in /Library/WebServer/Documents/phpweb20/include/Zend/Loader.php on line 146
Warning: include_once() [function.include]: Failed opening 'Text/Password.php' for inclusion (include_path='.:/Library/WebServer/Documents/phpweb20/include') in /Library/WebServer/Documents/phpweb20/include/Zend/Loader.php on line 146
Fatal error: Class 'Text_Password' not found in /Library/WebServer/Documents/phpweb20/include/DatabaseObject/User.php on line 25
我更改 .htaccess 文件的原因是因为我使用的是 Zend 框架。我将 Zend 类放在包含文件夹中。我可以为 PEAR 做类似的事情吗?
非常感谢!
琼斯
【问题讨论】:
标签: php zend-framework pear