Mevcut sitede ssl var http ile açılmaması gayet normal değilmi ?
https olarak hiç bir sorun yok...
$site = "https://www.sinop.edu.tr/Haberler/Tum_Haberler";
$ch = curl_init();
$agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.89 Safari/537.36";
curl_setopt($ch, CURLOPT_REFERER, 'https://www.google.com.tr');
curl_setopt($ch, CURLOPT_URL, $site);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$site = curl_exec($ch);
curl_close($ch);
preg_match('@<table id="ContentPlaceHolder1_duyuru">(.*?)</table>@si',$site,$data);
echo $data[0];Az önce yazdım sorun yok çalışıyor