News Feed

News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way
Showing the weather with PHP and Google Weather API
September 11, 2009 @ 09:47:21

On the blog there's a recent post walking you through the steps to add the Google weather content to your site, complete with icons.

If you need to show weather in your website, you can use weather widget such as weatherbug. It's nice and simple, but maybe you need something more integrated with your website. So, take a look at Google Weather API.

They use a SimpleXML object to pull in the XML data from Google's backend (as called via a URL) and loop through the resulting objects to output temperature, current conditions and several days of the forecast.

1 comment voice your opinion now!
weather tutorial google simplexml api

blog comments powered by Disqus

Similar Posts The Best Ways to Fight Spam

Francois Zaninotto: Node.js for PHP Developers Series

Gilang Chandrasa's Blog: CodeIgniter Tutorial Compilation

Community News: Symfony Framework Makes Some Updates (v.0.6.2 and Content) Writing A Simple Twitter Client Using the PHP Zend Framework's OAuth Library

Community Events

Don't see your event here?
Let us know!

community install podcast unittest library example opinion extension release interview api laravel5 voicesoftheelephpant xdebug series php7 introduction language framework laravel

All content copyright, 2015 :: - Powered by the Solar PHP Framework