Buyrun Bu Şekilde Kullanabilirsiniz;
<?php
function verial($url)
{
if (!extension_loaded(curl)){die("Extension yuklu degil socket deneyebilirsin");}
$ch = curl_init();
if (!$ch) { die ("Curl oturumu baslatamadim.."); }
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_POST, 0);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3");
curl_setopt($ch, CURLOPT_REFERER, "http://www.google.com");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
$x = verial($yaz["site"]);
if($x){echo "Aktif";}else{echo "İnAktif";}
?>Hayırlı Günler.