Muhammad Usman
Muhammad Usman

Reputation: 10956

how to install the oauth in php

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

Upvotes: 3

Views: 14122

Answers (3)

rehan aziz
rehan aziz

Reputation: 64

  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)

Upvotes: 0

Farhan
Farhan

Reputation: 1601

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.

Upvotes: 0

user1285107
user1285107

Reputation:

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

Upvotes: 5

Related Questions