出现file_get_contents(): SSL operation failed with code 1
的错误
$stream_opts = [
"ssl" => [
"verify_peer"=>false,
"verify_peer_name"=>false,
]
];
$response = file_get_contents("https://www.yourdomain.com",false, stream_context_create($stream_opts));