3

How to install the oauth in php. Can any one provide me the full description, links and all the libraries. I tried from here but I could not understand

I want to access the oauth token by the following code

$oauth = new OAuth(API_CONSUMER_KEY, API_CONSUMER_SECRET);

but this is not working because php extension for oauth is not installed

3 Answers 3

5

Yup, u need this file php_oauth.dll (windows)

Put into

/bin/php[version]/ext

And you need to change php.ini to load oauth (Dynamic Extensions)

extension=php_oauth.dll
Sign up to request clarification or add additional context in comments.

3 Comments

Beware that the link points to php_oauth version 1-dev, which had lots of bugs.
Above URL is not working and even I've the .dll ( windows.php.net/downloads/pecl/releases/oauth/1.2.3 ) file I'm getting following error after updating the ini file. The program can't start because php5.dll is missing..
Use dll from : windows.php.net/downloads/pecl/releases/oauth/1.2.3 Signature verified. But expired token error message. I believe its not having the right dll file issue.
0

You can find the correct dll files here

Make sure you select the correct file on the following factors:

  1. PHP version
  2. Architecture (x86 or x64)
  3. Thread Safety (Yes/No)

You can find these info using php_info(); of your server.

Comments

0
  1. Download php_oauth.dll (for windows).
  2. Install the Oauth extension. /bin/php[version]/ext
  3. Add in php.ini to load oauth extension=php_oauth.dll

Note: For windows you should have compiled file. (.dll file of extension)

1 Comment

Hmm could be very helpful

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.