Se lo inserisco mi da errore...
<?php
$xml = simplexml_load_file("https://username:password@wetter.ws.siag.it/Weather_V1.svc/web/getLastProvBulletin?lang=it");
setlocale(LC_ALL,'it_IT');
$thedate = $xml->today->date;
$thedate = split('T',$thedate);
$thedate = $thedate[0];
$thedate = strftime('%A %e %B %G',strtotime($thedate));
$tomorrowdate = $xml->tomorrow->date;
$tomorrowdate = split('T',$tomorrowdate);
$tomorrowdate = $tomorrowdate[0];
$tomorrowdate = strftime('%A %e %B %G',strtotime($tomorrowdate));
<h1>echo "Il tempo di oggi: ".$thedate."[br /]\n";</h1>
echo $xml->today->title."[br /]\n";
echo "Condizioni"."[br /]\n";
echo $xml->today->conditions."[br /]\n";
echo "[br /]\n";
echo "Meteo"."[br /]\n";
echo $xml->today->weather."[br /]\n";
echo "[br /]\n";
echo "Temperature"."[br /]\n";
echo $xml->today->temperatures."[br /]\n";
echo "<img src=".$xml->today->imageURL."[br /]\n";
echo "[br /]\n";
echo "[br /]\n";
echo "Il tempo di domani: ".$tomorrowdate."[br /]\n";
echo $xml->tomorrow->title."[br /]\n";
echo "Condizioni"."[br /]\n";
echo $xml->tomorrow->conditions."[br /]\n";
echo "[br /]\n";
echo "Meteo"."[br /]\n";
echo $xml->tomorrow->weather."[br /]\n";
echo "[br /]\n";
echo "Temperature"."[br /]\n";
echo $xml->tomorrow->temperatures."[br /]\n";
echo "<img src=".$xml->tomorrow->imageURL."[br /]\n";
?>
dove sbaglio?
Scusate ma sono davvero alle primissime armi...