Me gustaria hacer un grafico de por ejemplo de los últimos 5 dias de la temperatura.
Tambien tengo la libreria GD de PHP.
Se puede hacer con Flash?
Muchas Gracias
-Frins
![Adios](http://static.forosdelweb.com/fdwtheme/images/smilies/adios.gif)
Script:
Código PHP:
<?php
//this is keith devens xml unserializer function; i just put it in a separate file;
require('includes/inc.xml.php');
$file = 'http://xoap.weather.com/weather/local/SPXX0143?cc=*&dayf=5&prod=xoap&par=1047702750&key=903ad8bff425e755&unit=m';
$xml = file_get_contents($file);
$data = XML_unserialize($xml);
$location = $data['weather']['loc']['dnam'];
$sunrise = $data['weather']['loc']['sunr'];
$sunset = $data['weather']['loc']['suns'];
$temp = $data['weather']['cc']['tmp'];
$flik = $data['weather']['cc']['flik'];
$windMPH = $data['weather']['cc']['wind']['s'];
$windGust = $data['weather']['cc']['wind']['gust'];
$windDir = $data['weather']['cc']['wind']['t'];
$bar= $data['weather']['cc']['bar'];
$icon = '<img src="images/64x64/' . $data['weather']['cc']['icon'] . '.png" alt="" />';
echo '<h4>' . $location . '</h4>';
echo $icon;
echo '<p>';
echo 'Sunrise: ' . $sunrise . '<br />';
echo 'Sunset: ' . $sunset . '<br />';
echo 'Temp: ' . $temp . '°<br />';
echo 'Feels Like: ' . $flik . '°<br />';
echo $windDir . ' ' . $windMPH . ' mph wind gusting to ' . $windGust . ' km/h.';
echo '</p>';
?>