Grâce à Google en 3 lignes de php:
$xml_str = file_get_contents("http://www.google.com/ig/api?weather=antony");
$xml = new SimplexmlElement($xml_str, TRUE);
echo $xml->weather->current_conditions->temp_c['data'];
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire