Install PHP OAuth Extension on WAMP

拈花ヽ惹草 提交于 2019-12-21 05:14:08

问题


This line of PHP code:

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

Results in error:

Fatal error: Class 'OAuth' not found

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

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

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


回答1:


Download the correct oauth DLL from here

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

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



回答2:


This is because you don't enabled php_OAuth.dll

For that you first need to enable

You can find stepwise instructions for windows from here



来源:https://stackoverflow.com/questions/12000470/install-php-oauth-extension-on-wamp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!