<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Parse Current Weather Conditions Data from the NWS in PHP</title>
	<atom:link href="http://phpstarter.net/2009/02/parse-current-weather-conditions-data-from-the-nws-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://phpstarter.net/2009/02/parse-current-weather-conditions-data-from-the-nws-in-php/</link>
	<description>PHP Tips &#38; Tools From Starters to Experts</description>
	<lastBuildDate>Sun, 15 Jan 2012 02:04:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Andrew</title>
		<link>http://phpstarter.net/2009/02/parse-current-weather-conditions-data-from-the-nws-in-php/comment-page-1/#comment-394</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Fri, 15 Jan 2010 22:40:55 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=386#comment-394</guid>
		<description>Hey Tim,

I figured that this way, I would only have to parse the XML once on the data load rather than every time someone loads a page.  Would this make a huge difference in the page load time? Probably not.  Also, if the NWS made changes to their file structure, you would have to rewrite some PHP code anyway, so I figured it wouldn&#039;t be too much of a big deal to change some MySQL data fields while you are at it.

Your method would probably work just as well - it&#039;s a matter of personal preference on what you would rather maintain.</description>
		<content:encoded><![CDATA[<p>Hey Tim,</p>
<p>I figured that this way, I would only have to parse the XML once on the data load rather than every time someone loads a page.  Would this make a huge difference in the page load time? Probably not.  Also, if the NWS made changes to their file structure, you would have to rewrite some PHP code anyway, so I figured it wouldn&#8217;t be too much of a big deal to change some MySQL data fields while you are at it.</p>
<p>Your method would probably work just as well &#8211; it&#8217;s a matter of personal preference on what you would rather maintain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Barmann</title>
		<link>http://phpstarter.net/2009/02/parse-current-weather-conditions-data-from-the-nws-in-php/comment-page-1/#comment-393</link>
		<dc:creator>Tim Barmann</dc:creator>
		<pubDate>Fri, 15 Jan 2010 21:30:29 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=386#comment-393</guid>
		<description>Sorry about using the wrong name, Andrew!</description>
		<content:encoded><![CDATA[<p>Sorry about using the wrong name, Andrew!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Barmann</title>
		<link>http://phpstarter.net/2009/02/parse-current-weather-conditions-data-from-the-nws-in-php/comment-page-1/#comment-392</link>
		<dc:creator>Tim Barmann</dc:creator>
		<pubDate>Fri, 15 Jan 2010 21:02:48 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=386#comment-392</guid>
		<description>Hey Chris,
Great work! I&#039;m finding your tutorials very helpful.
One question about the approach you took for caching.  Rather than create fields in the MYSQL database to mirror those in the NWS current observation xml file, why not just create a big text field in the DB and store the xml in a single field? Another DB field could be the station id, and a third field could be the last updated time.  Can you see any advantage/disadvantage to this approach?  My thinking is that you don&#039;t have to worry about changing the database if the NWS decides to change the format of their current observations xml.
Thanks again for your great work.
Tim</description>
		<content:encoded><![CDATA[<p>Hey Chris,<br />
Great work! I&#8217;m finding your tutorials very helpful.<br />
One question about the approach you took for caching.  Rather than create fields in the MYSQL database to mirror those in the NWS current observation xml file, why not just create a big text field in the DB and store the xml in a single field? Another DB field could be the station id, and a third field could be the last updated time.  Can you see any advantage/disadvantage to this approach?  My thinking is that you don&#8217;t have to worry about changing the database if the NWS decides to change the format of their current observations xml.<br />
Thanks again for your great work.<br />
Tim</p>
]]></content:encoded>
	</item>
</channel>
</rss>

