<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Mon, 20 May 2013 07:56:51 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPBuilder.com: Incorporate Weather Data into Your PHP Web Apps]]></title>
      <guid>http://www.phpdeveloper.org/news/16923</guid>
      <link>http://www.phpdeveloper.org/news/16923</link>
      <description><![CDATA[<p>
On PHPBuilder.com today there's a new tutorial helping you <a href="http://www.phpbuilder.com/columns/WeatherDataPHP/WeatherDataPHP.cc_09-26-2011.php3">integrate weather data</a> into your site with the help of the <a href="http://pear.php.net/package/Services_Weather/">Services_Weather</a> PEAR package.
</p>
<blockquote>
Regardless of whether you consider the weather to be an obsession or nuisance, there are plenty of opportunities to incorporate weather-related data into your Web application. The Services_Weather PEAR Package offers what is perhaps the easiest way to begin retrieving weather-related data.
</blockquote>
<p>
Included in the post are the commands you'll need to get the package installed (via the PEAR installer) and sample code to set up the connection - in this case to <a href="http://weather.com">Weather.com</a> - to fetch the results for a search location. The "search" method will return the best guesses for your input and give you the unique code to use for fetching other values, like the current forecast.
</p>]]></description>
      <pubDate>Wed, 28 Sep 2011 13:44:29 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sudheer Satyanarayana's Blog: A Bit Of XML, RSS And CURL In 7 Lines Of PHP And A Useful Program]]></title>
      <guid>http://www.phpdeveloper.org/news/14290</guid>
      <link>http://www.phpdeveloper.org/news/14290</link>
      <description><![CDATA[<p>
In a new blog post today <i>Sudheer Satyanarayana</i> shows how to take a few simple lines of code (seven to be exact) and <a href="http://techchorus.net/bit-xml-rss-and-curl-7-lines-php-and-useful-program">create a simple XML/RSS reader</a> he used to pull in weather data for a simple application.
</p>
<blockquote>
Today, I was looking for a quick way to get the current weather information on my computer. There are so many websites out there that offer the information. But I was looking for a program I could permanently install on my computer and launch it whenever I want to lookup the weather information. [...] I wrote a program to print the weather information in 7 lines of PHP code. I have published this program on <a href="http://github.com/bngsudheer/Code-Album/tree/master/cli/scripts/standalone/service/Yahoo/Weather/">Code Album</a> github repository. You can grab it and use it.
</blockquote>
<p>
He chose a Yahoo feed to get the weather information from their service. He includes the base code to make the request via a cURL connection and parsing it into a SimpleXML object to pull out the needed info.
</p>]]></description>
      <pubDate>Fri, 02 Apr 2010 11:27:47 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Komunitasweb.com: Showing the weather with PHP and Google Weather API]]></title>
      <guid>http://www.phpdeveloper.org/news/13206</guid>
      <link>http://www.phpdeveloper.org/news/13206</link>
      <description><![CDATA[<p>
On the Komunitasweb.com blog there's a <a href="http://komunitasweb.com/2009/09/showing-the-weather-with-php-and-google-weather-api/">recent post</a> walking you through the steps to add the Google weather content to your site, complete with icons.
</p>
<blockquote>
If you need to show weather in your website, you can use weather widget such as <a href="http://weather.weatherbug.com/desktop-weather/web-widgets.html">weatherbug</a>. It's nice and simple, but maybe you need something more integrated with your website. So, take a look at Google Weather API. 
</blockquote>
<p>
They use a <a href="http://php.net/simplexml">SimpleXML</a> 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.
</p>]]></description>
      <pubDate>Fri, 11 Sep 2009 09:47:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[CSS-Tricks.com: Using Weather Data to Change Your Website's Appearance through PHP and CSS]]></title>
      <guid>http://www.phpdeveloper.org/news/11974</guid>
      <link>http://www.phpdeveloper.org/news/11974</link>
      <description><![CDATA[<p>
On the CSS-Tricks.com site today there's a <a href="http://css-tricks.com/using-weather-data-to-change-your-websites-apperance-through-php-and-css/">quick tutorial</a> on changing up the look and feel of your site based on an external source. More specifically, they give the example of updating the graphics of your site depending on the weather in your area via PHP and CSS.
</p>
<blockquote>
Using a little magic and trickery (read: PHP and CSS), we can change the appearance of a website automatically based on the weather outside, in real time! In the <a href="http://css-tricks.com/examples/WeatherSwitcher/">example site</a> we have created, the header graphic will change to one of four different styles based on Sunny, Rain, Snow, and Cloudy.
</blockquote>
<p>
Their example makes a request to the Yahoo! weather data for a location and brings it in to PHP where the XML is parsed (via a regular expression) and the current conditions are parsed out. This condition is then passed out into the page as the class type on the header and, based on the CSS already defined, the correct image is pulled in as the background.
</p>]]></description>
      <pubDate>Wed, 18 Feb 2009 12:08:03 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Stoyan Stefanov's Blog: Really simple Really Simple Syndication syndication]]></title>
      <guid>http://www.phpdeveloper.org/news/7995</guid>
      <link>http://www.phpdeveloper.org/news/7995</link>
      <description><![CDATA[<p>
On PHPied.com, <i>Stoyan Stefanov</i> shows how, via a simple bit of code (using some SimpleXML) he <a href="http://www.phpied.com/really-simple-really-simple-syndication-syndication/">replaced the javascript widgets</a> he was previously using for weather information.
</p>
<blockquote>
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.
</blockquote>
<p>
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.
</p>]]></description>
      <pubDate>Thu, 07 Jun 2007 07:06:07 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: Web APIs with PHP Book Released]]></title>
      <guid>http://www.phpdeveloper.org/news/6157</guid>
      <link>http://www.phpdeveloper.org/news/6157</link>
      <description><![CDATA[<p>
It's the book everyone's talking about and the entire PHP community should by! Okay, really, there's a few blog posts about it, but it's definitely not one to pass up if you need a quality recource on using web APIs in PHP - <i>Paul Reinheimer</i>'s "<a href="http://www.amazon.com/gp/product/0764589547/">Professional Web APIs with PHP: eBay, Google, Paypal, Amazon, FedEx plus Web Feeds</a>".
</p>
<p>
<i>Chris Shiflett</i> <a href="http://shiflett.org/archive/257">comments</a> on his blog that, though he hasn't read it yet:
</p>
<blockquote>
I know Paul has been working on it for well over a year, and it has already received a <a href="http://godbit.com/article/web-apis-with-php">positive review</a> from Nathan Smith.
</blockquote>
<p>
The review gives praise to the book, noting that it provides good examples and helpful tutorials for each of the APIs talked about. The book covers its subject well without trying to "spread itself too thin" by including too much and not focusing on its core - APIs like eBay, Google, FedEx, Flickr, even the National Weather Service.
</p>
<p>
Even <i>Paul</i> himself <a href="http://preinheimer.com/index.php?/archives/215-Buy-My-Book.html">comments on the occasion</a>, mentioning what his intentions for the book were and how it changed along the way. 
</p>]]></description>
      <pubDate>Mon, 28 Aug 2006 13:13:00 -0500</pubDate>
    </item>
  </channel>
</rss>
