Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install PHP OAuth Extension on WAMP

Tags:

php

oauth

wamp

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?

like image 714
Aydus-Matthew Avatar asked Jan 16 '23 19:01

Aydus-Matthew


1 Answers

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
like image 57
Kailas Avatar answered Jan 25 '23 07:01

Kailas