错误提示:
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?)Fatal error: Uncaught exception 'Exception' with message '建立sock连接失败'
形成原因:
使用fsockopen()需要php_openssl.dll的支持,有的服务器并没有加载该dll
解决方案一: 用 curl代替fsockopen
打开opent.php 把185行到241行注释掉并把244行到291行的注释去掉
(PS:如果不能解决问题 请尝试下面的解决方案)
-------------------------------------------------
以下方案需要php.ini 修改权限(如果没有权限可以联系服务器管理员或空间运营商)
解决方案二:
打开 php.ini找到;extension=php_openssl.dll
和
;extension=php_curl.dll
把前面的分号去掉,重启IIS或APACHE问题解决