Windows安装php扩展之OAuth

Windows安装php扩展之OAuth

 

php的OAuth说明在:

http://php.net/manual/en/book.oauth.php

该说明中指出了如何安装oauth,链接如下:

http://php.net/manual/en/oauth.installation.php

可是按照上面的说明安装的时候出错了,google发现是pecl的bug来着,所以干脆找一个dll解决问题,根据你自己的版本从下面的链接的页面下载dll

http://windows.php.net/downloads/pecl/releases/oauth/1.2.3/

 

     Thursday, April 10, 2014 10:51 PM        <dir> logs
    Tuesday, October 22, 2013  5:03 AM       807965 php_oauth-1.2.3-5.3-nts-vc9-x86.zip
    Tuesday, October 22, 2013  5:07 AM       805618 php_oauth-1.2.3-5.3-ts-vc9-x86.zip
    Tuesday, October 22, 2013  4:56 AM       799903 php_oauth-1.2.3-5.4-nts-vc9-x86.zip
    Tuesday, October 22, 2013  5:00 AM       802115 php_oauth-1.2.3-5.4-ts-vc9-x86.zip
    Tuesday, October 22, 2013  4:41 AM       832137 php_oauth-1.2.3-5.5-nts-vc11-x64.zip
    Tuesday, October 22, 2013  4:49 AM       806878 php_oauth-1.2.3-5.5-nts-vc11-x86.zip
    Tuesday, October 22, 2013  4:45 AM       830808 php_oauth-1.2.3-5.5-ts-vc11-x64.zip
    Tuesday, October 22, 2013  4:53 AM       816437 php_oauth-1.2.3-5.5-ts-vc11-x86.zip
     Thursday, April 10, 2014 10:47 PM       852928 php_oauth-1.2.3-5.6-nts-vc11-x64.zip
     Thursday, April 10, 2014 10:38 PM       835457 php_oauth-1.2.3-5.6-nts-vc11-x86.zip
     Thursday, April 10, 2014 10:51 PM       855025 php_oauth-1.2.3-5.6-ts-vc11-x64.zip
     Thursday, April 10, 2014 10:42 PM       838041 php_oauth-1.2.3-5.6-ts-vc11-x86.zip

注意5.3 5.4 5.6 这些代表的是php的版本,所以先使用

php –version

查看一下你的php的版本。

下面的上面的zip包,然后解压,将其中的dll放在php的ext的文件下面,再在php.ini添加这个扩展即可

测试是否安装成功:

<?php

$auth = OAuth("test","test");

?>

如果没有报错,说明安装成功。

版权所有,禁止转载. 如需转载,请先征得博主的同意,并且表明文章出处,否则按侵权处理.

    分享到:

Leave a Reply

Your email address will not be published. Required fields are marked *