出現(xiàn)這種一般是是訪(fǎng)問(wèn)https的地址,ssl驗(yàn)證訪(fǎng)問(wèn)導(dǎo)致的
$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 );
發(fā)表評(píng)論