nikomou
12-05-2008, 10:53 AM
Hello, I want to use Google Weather API
http://www.google.com/ig/api?weather=England
to somehow load information about the weather onto my website.
Has anybody here done this before? So far, I have this code:
<?php
$xml = simplexml_load_file("news/api.xml");echo $xml->getName() . "<br />";foreach($xml->children() as $child)
{
echo $child->getName() . ": " . $child . "<br />";
}
?>
Thanks
http://www.google.com/ig/api?weather=England
to somehow load information about the weather onto my website.
Has anybody here done this before? So far, I have this code:
<?php
$xml = simplexml_load_file("news/api.xml");echo $xml->getName() . "<br />";foreach($xml->children() as $child)
{
echo $child->getName() . ": " . $child . "<br />";
}
?>
Thanks