News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Stoyan Stefanov's Blog:
Really simple Really Simple Syndication syndication
June 07, 2007 @ 07:06:07

On PHPied.com, Stoyan Stefanov shows how, via a simple bit of code (using some SimpleXML) he replaced the javascript widgets he was previously using for weather information.

So it was time for a change, since those buttons were generated by some javascripts, hosted by theweathernetwork, which is kind of a web 1.0 way of sharing content. In the days of APIs and stuff, this is a shame.

He dropped theweathernetwork.com's information and went for something a little more API-friendly - the weather feeds that Yahoo! offers. Once he figured out the right URL parameter to pass for the cities, it was just a matter of whipping up a 30 line script (using SimpleXML) to grab the weather information for the city and echo out the data.

0 comments voice your opinion now!
syndication simple simplexml feed yahoo weather syndication simple simplexml feed yahoo weather


blog comments powered by Disqus

Similar Posts

Architexa Blog: Simplifying Dependency Injection

Stoyan Stefanov's Blog: Really simple Really Simple Syndication syndication

Sara Goleman's Blog: A yodeler falls silent. (Andrei Zmievski's Move from Yahoo)

TotalPHP.com: How to Read an RSS Feed with PHP 5

Chris Jones' Blog: PECL Install Prompts Explained, With Particular Reference to OCI8


Community Events

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


podcast framework introduction language unittest interview wordpress series extension api laravel5 laravel release feature opinion library development threedevsandamaybe community voicesoftheelephpant

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework