Örnek veriyorum elimde şöyle bir kod var

<?php

function siteConnect($site)
{

$ch = curl_init();
$hc = "YahooSeeker-Testing/v3.9 (compatible; Mozilla 4.0; MSIE 5.5; Yahoo! Search - Web Search)";
curl_setopt($ch, CURLOPT_REFERER, 'http://www.google.com');
curl_setopt($ch, CURLOPT_URL, $site);
curl_setopt($ch, CURLOPT_USERAGENT, $hc);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$site = curl_exec($ch);
curl_close($ch);


// Veriyi parçalama işlemi
preg_match_all('@<td id="timeImsak" class="pTime">(.*?)</td>@si',$site,$imsak);
preg_match_all('@<td id="timeGunes" class="pTime">(.*?)</td>@si',$site,$gunes);
preg_match_all('@<td id="timeOgle" class="pTime">(.*?)</td>@si',$site,$ogle);
preg_match_all('@<td id="timeIkindi" class="pTime">(.*?)</td>@si',$site,$ikindi);
preg_match_all('@<td id="timeAksam" class="pTime">(.*?)</td>@si',$site,$aksam);
preg_match_all('@<td id="timeYatsi" class="pTime">(.*?)</td>@si',$site,$yatsi);

echo "İmsak: ".$imsak[0][0]."<br />";
echo "Güneş: ".$gunes[0][0]."<br />";
echo "Öğle: ".$ogle[0][0]."<br />";
echo "İkindi: ".$ikindi[0][0]."<br />";
echo "Akşam: ".$aksam[0][0]."<br />";
echo "Yatsı: ".$yatsi[0][0]."<br />";

}

$giris = siteConnect('http://www.namazvakti.com/Main.php?cityID=61711');

?>
Bu kod calısıyor ancak bunu baska bir site için uyarladığımda;
<?php

function siteConnect($site)
{

$ch = curl_init();
$hc = "YahooSeeker-Testing/v3.9 (compatible; Mozilla 4.0; MSIE 5.5; Yahoo! Search - Web Search)";
curl_setopt($ch, CURLOPT_REFERER, 'http://www.google.com');
curl_setopt($ch, CURLOPT_URL, $site);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_USERAGENT, $hc);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$site = curl_exec($ch);
curl_close($ch);


// Veriyi parçalama işlemi
preg_match_all('@<div id="quotes_summary_current_data" class="instrumentDataFlex">(.*?)</div>@',$site,$ruble);


echo "Usd TO Ruble: ".$ruble[0][0]."<br />";


}

$giris = siteConnect('https://tr.investing.com/currencies/usd-rub');

?>

Çalışmıyor.buraya o ruble fiyatının yanındaki div değerlerini verdim ama orayı çekmıyor bunun baska bir mantıgı mı var?