file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL
出现这种一般是是访问https的地址,ssl验证访问导致的$arrContextOptions = ['ssl' => ['verify_peer' => false,'verify_peer_name' => false,]];$response = file_get_contents($voucherImageBase64, false, stream_context_cre
·
- 出现这种一般是是访问https的地址,ssl验证访问导致的
$arrContextOptions = [
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
]
];
$response = file_get_contents($voucherImageBase64, false, stream_context_create($arrContextOptions));
file_put_contents($voucherImage, $response);
更多推荐
已为社区贡献1条内容
所有评论(0)