how to install the oauth in php

2020-03-04 10:11发布

问题:

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

回答1:

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


回答2:

First of you have to download pear run it. than Install the Oauth extension. For windows you should have compiled file. of .dll file of extension. Best of luck



回答3:

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.



标签: php oauth