[teknik]
(1) 

HTTPS Curl

tchuck #675853
function curl($url)
{
$ch = curl_init();
$timeout = 5;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.52 Safari/537.17');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}

bu fonksiyon ile https sitelerden veri çekemiyorum.
ne yapmam gerekiyor?

 

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
ya da

snippets.webaware.com.au

tuyra
1

mobil görünümden çık