博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
cakephp发送post请求
阅读量:4287 次
发布时间:2019-05-27

本文共 514 字,大约阅读时间需要 1 分钟。

    if ($this->config['persistent'] == true) {
            $tmp = null;
            $this->connection = @pfsockopen($scheme.$this->config['host'], $this->config['port'], $errNum, $errStr, $this->config['timeout']);
        } else {
            $this->connection = @fsockopen($scheme.$this->config['host'], $this->config['port'], $errNum, $errStr, $this->config['timeout']);

        }

发现 $this->connection总是返回false,原来是因为没有打开openssl

解决方案:windows下,在php.ini中打开opensll扩展,并将php目录下的libeay32.dll和ssleay32.dll两个库拷贝到system32下

linux下,重新编译php,编译时加上参数--enable-ssl(具体参看configure的help)

转载地址:http://attgi.baihongyu.com/

你可能感兴趣的文章
网站接入微博快捷登录-微博开放平台
查看>>
linux centos 使用yum安装java
查看>>
微信商户支付开发中的三套商户
查看>>
微信开放平台和公总平台关系图
查看>>
python 写入CSV文件报错:a bytes-like object is required, not 'str'
查看>>
用户故事
查看>>
需求挖掘-(P1思维导图 P2用户故事/HMW分析法 P3 故事板/设计马拉松)
查看>>
需求分析——用HMW分析法需求
查看>>
重新认识运营
查看>>
P2--复杂流程图设计
查看>>
sass产品经理课程---关于场景与价值
查看>>
sass产品经理课程---如何用场景七要素描述场景(两个视频)
查看>>
【产品设计】90天产品经理实战 分析
查看>>
xml格式消息体
查看>>
contents
查看>>
json.loads
查看>>
python 列表
查看>>
快速截屏小工具
查看>>
如何用github发布Axure原型
查看>>
安装selenium RC
查看>>