a me funziona

ma hai messo le parentesi graffe?

// Carica il file xml--------------------------------------
{
$url = http://www.weatherlink.com/xml.php?u...ss=TUAPASSWORD;
$ip = @file_get_contents($url);
$cur_obs = simplexml_load_string($ip);
$davis_current = $cur_obs->davis_current_observation;
}