如何在php中安装oauth [英] how to install the oauth in php

查看:52
本文介绍了如何在php中安装oauth的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在php.ini中安装oauth.任何人都可以向我提供完整的描述、链接和所有库.我从这里尝试过,但我不明白

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

我想通过以下代码访问oauth令牌

I want to access the oauth token by the following code

$oauth = new OAuth(API_CONSUMER_KEY, API_CONSUMER_SECRET);

但这不起作用,因为未安装 oauth 的 php 扩展

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

推荐答案

是的,你需要这个文件 php_oauth.dll (windows)

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

放入

/bin/php[version]/ext

并且需要修改php.ini来加载oauth(动态扩展)

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

extension=php_oauth.dll

这篇关于如何在php中安装oauth的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆