qq微博 PHP SDK

来源:互联网 发布:美工属于什么职位类别 编辑:程序博客网 时间:2024/05/01 06:06

之前未做过PHP开发,下载了一个LAMP的免安装包,放入PHP的脚本页面,启动以后,发现有错误;

查找了半天,发现只需要把$PHP/php.ini中的一行注释,打开即可

 

;extension=php_openssl.dll   >> extension=php_openssl.dll

 

 

Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://open.t.qq.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in D:/tttttt/e2php_12_20/htdocs/qq_php/opent.php on line 216

Fatal error: Uncaught exception 'Exception' with message '建立sock连接失败' in D:/tttttt/e2php_12_20/htdocs/qq_php/opent.php:220 Stack trace: #0 D:/tttttt/e2php_12_20/htdocs/qq_php/opent.php(179): MBOpenTOAuth->http('https://open.t....', 'GET') #1 D:/tttttt/e2php_12_20/htdocs/qq_php/opent.php(48): MBOpenTOAuth->oAuthRequest('https://open.t....', 'GET', Array) #2 D:/tttttt/e2php_12_20/htdocs/qq_php/index.php(9): MBOpenTOAuth->getRequestToken('http://h.t.net/...') #3 {main} thrown in D:/tttttt/e2php_12_20/htdocs/qq_php/opent.php on line 220

 

 

原创粉丝点击