在 WAMP 上安装 PHP OAuth 扩展 [英] Install PHP OAuth Extension on WAMP

查看:60
本文介绍了在 WAMP 上安装 PHP OAuth 扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这行PHP代码:

$oauthClient = new OAuth($consumerKey, $consumerSecret, ... etc.

导致错误:

致命错误:找不到OAuth"类

Fatal error: Class 'OAuth' not found

我正在运行 WampServer 2.1、PHP 版本 5.3.4、Windows Server 2008 R2(相当于 Windows 7)

I'm running WampServer 2.1, PHP version 5.3.4, Windows Server 2008 R2 (equivalent to Windows 7)

我已经按照以下说明仔细检查了 php_oauth.dll 是否已安装:PHP OAUTH 类 api

I've double checked that php_oauth.dll is installed as per these instructions: PHP OAUTH class api

如何成功加载 oauth 扩展并修复此 PHP 错误?

How do I successfully load the oauth extension and fix this PHP error?

推荐答案

这里

将 php_oauth.dll 粘贴到 \wamp\bin\php\php5.5.12\ext

Paste php_oauth.dll in \wamp\bin\php\php5.5.12\ext

将这些行添加到您的 php.ini extension=php_oauth.dll

Add these line your both php.ini extension=php_oauth.dll

1.\wamp\bin\php\php5.5.12
2.\wamp\bin\apache\apache2.4.9\bin

这篇关于在 WAMP 上安装 PHP OAuth 扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆