function connected($Url){
$UserAgent = 'Mozilla/5.0 (compatible; Googlebot/2.1; +[url]http://www.google.com/bot.html)';
$Referer = 'http://www.google.com/';
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $Url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_REFERER, $Referer);
curl_setopt ($ch, CURLOPT_USERAGENT, $UserAgent);
$return = curl_exec($ch);
curl_close($ch);
return $return;
}
$Url = connected('https://www.havaturkiye.com/weather/maps/city?WMO=17024&LEVEL=180');
preg_match('#<table class="gr2">(.*?)</table>#si', $Url, $Table);
print_r($Table);
Bundan sonraki işlemleri artık kendiniz halledebilirsiniz , gerisi ellerinizden öper.