Zend Gdata 包含路径问题 (Loader.php)
我一直在尝试安装 Zend Gdata。我正在开发环境中运行,因此可以访问 php.ini。
我已经设置了包含路径,当我运行验证脚本时,我得到以下信息。
Ran PHP Installation Checker on 2011-04-28T02:25:20+00:00 已测试的 PHP 扩展错误 没有发现错误 Zend Framework 安装错误已测试 没有发现错误 SSL 功能错误测试 没有发现错误 已测试 YouTube API 连接错误 没有发现错误
但是当我尝试运行任何演示文件时,我收到以下错误...
Warning: require_once(Zend/Loader.php): failed to open stream: No such file or directory in /usr/lib/php/ZendGdata/demos/Zend/Gdata/blogger.php on line 37
致命错误:require_once():无法打开所需的'Zend / Loader.php'(include_path ='.:/ usr/lib/php') in /usr/lib/php/ZendGdata/demos/Zend/Gdata/blogger.php on line 37
最合乎逻辑的结论是包含路径有问题,但我检查过它并且看来是对的。
这就是我所拥有的...
.:/usr/lib/php/ZendGdata/library/Zend:/usr/lib/php/ZendGdata/library/
任何建议将不胜感激。
I've been trying to install Zend Gdata. I'm running from a dev environment so have access to php.ini.
I've set the include path and when I run the verification script I get the following..
Ran PHP Installation Checker on 2011-04-28T02:25:20+00:00
PHP Extension Errors Tested
No errors found
Zend Framework Installation Errors Tested
No errors found
SSL Capabilities Errors Tested
No errors found
YouTube API Connectivity Errors Tested
No errors found
But when I try to run any of the demo files I get the floowing error...
Warning: require_once(Zend/Loader.php): failed to open stream: No such file or directory in /usr/lib/php/ZendGdata/demos/Zend/Gdata/blogger.php on line 37
Fatal error: require_once(): Failed opening required 'Zend/Loader.php' (include_path='.:/usr/lib/php') in /usr/lib/php/ZendGdata/demos/Zend/Gdata/blogger.php on line 37
The most logical conclusion is that there is a problem with the include path, but I have checked it and it seems right.
Here's what I have for it...
.:/usr/lib/php/ZendGdata/library/Zend:/usr/lib/php/ZendGdata/library/
Any suggestions would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将其放在 Blogger.php 的开头
您说您正在配置文件中设置包含路径,但这似乎不会影响 CLI。确保您使用
php --ini
编辑正确的 php.ini 文件Put this in the beginning of Blogger.php
You say you're setting the include path in a configuration file but that doesn't seem to be affecting CLI. Make sure you're editing the right php.ini file with
php --ini
如果您不知道服务器的根路径,请使用相对路径访问库。使用起来非常方便。
夹结构的任何文件{page1,page2,page3}的顶部
您可以根据需要使用相对路径
if you do not know the root path of the server, use relative path for accessing library. Its pretty handy to use.
above two lines should be written on the top of any file{page1,page2,page3} having folder structure as below
You can use your relative path as per your need