<?php
$url = "http://weather.yahooapis.com/forecastrss?p=TUXX0014&u=c";
$feed = simplexml_load_file($url);
if(!$feed) die('Hata var !');
preg_match_all('/<img src="(.*)"\/>/Usi', $feed->channel->item->description,$resimler);
$ch = $feed->channel->item->children('yweather', true);
$at = $ch->forecast->attributes();
$att = $ch->condition->attributes();
$derece = $at->high;
$edderece = $at->low ;
$r_kodu = $att->code;
$resim = $resimler[1][0];
?>
Arkadaşlar merhaba yukarıdaki gibi bir kod bloğum var havadurumu localde çiçek gibi çalıştığı halde servera atınca aşşağıdaki gibi hata veriyor. Sebebi ve çözümü açıklayabilicek dostlar varsa şimdiden teşekkür ederim. Diğer kişiler içinde yardımcı bi döküm olur mutlaka.
function.simplexml-load-file]: URL file-access is disabled in the server configuration in /wwwroot1/deneme.com.tr/haberler.php on line 487
Warning: simplexml_load_file(http://weather.yahooapis.com/forecastrss?p=TUXX0014&u=c) [function.simplexml-load-file]: failed to open stream: no suitable wrapper could be found in /wwwroot1/deneme.com.tr/haberler.php on line 487
Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "http://weather.yahooapis.com/forecastrss?p=TUXX0014&u=c" in /wwwroot1/deneme.com.tr/haberler.php on line 487
Hata var !