龙岩易富通网络科技有限公司

龙岩小程序开发,龙岩分销系统

file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL

2021.04.01 | 1310阅读 | 0条评论 | php

出现这种一般是是访问https的地址,ssl验证访问导致的


$opts = array ('ssl' => array ('verify_peer' => false,'verify_peer_name' => false ),'http' => array ('method' => 'POST','header' => 'Content-type:application/x-www-form-urlencoded;charset=utf-8','content' => urldecode ( $postdata ) ) );

$context = stream_context_create ( $opts );

$result = file_get_contents ( $url, false, $context );


赞 (

发表评论