首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何让dropbox-php库与pear HTTP_OAUTH一起工作?

如何让dropbox-php库与pear HTTP_OAUTH一起工作?
EN

Stack Overflow用户
提问于 2011-09-23 02:10:01
回答 1查看 2.7K关注 0票数 0

我一直在努力让dropbox-php库正常工作,但我尝试使用这些类的页面输出了一个错误:

代码语言:javascript
复制
Warning: include(HTTP/OAuth/Consumer.php) [function.include]: failed to open stream: No such file or directory in /home/sensured/public_html/sensured.net/Dropbox/OAuth/PEAR.php on line 47   

Warning: include(HTTP/OAuth/Consumer.php) [function.include]: failed to open stream: No such  file or directory in /home/sensured/public_html/sensured.net/Dropbox/OAuth/PEAR.php on line 47

Warning: include() [function.include]: Failed opening 'HTTP/OAuth/Consumer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sensured/public_html/sensured.net/Dropbox/OAuth/PEAR.php on line 47

Fatal error: Uncaught exception 'Dropbox_Exception' with message 'The HTTP_OAuth_Consumer class could not be found! Did you install the pear HTTP_OAUTH class?' in /home/sensured/public_html/sensured.net/Dropbox/OAuth/PEAR.php:51 Stack trace: #0 /home/sensured/public_html/sensured.net/Dropbox/getmetadata.php(11): Dropbox_OAuth_PEAR->__construct('', '') #1 {main} thrown in /home/sensured/public_html/sensured.net/Dropbox/OAuth/PEAR.php on line 51  

pear HTTP_OAUTH类已经安装(v0.2.3),但它是通过cpanel完成的,所以我不确定它在哪里,甚至不知道它是否有什么要说的。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-09-23 02:27:32

您需要确保PEAR的PHP目录在include_path中。

使用以下命令查找路径

代码语言:javascript
复制
$ pear config-get php_dir

然后将其添加到php.iniinclude_path指令中,然后重启web服务器软件以激活新的设置。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7519429

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档