Created
April 6, 2011 16:33
-
-
Save shoxty/905991 to your computer and use it in GitHub Desktop.
Get the weather condition from googles weather api
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$xml = simplexml_load_file('http://www.google.com/ig/api?weather=[LOCATION]'); | |
$information = $xml->xpath("/xml_api_reply/weather/current_conditions/condition"); | |
echo $information[0]->attributes(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment