<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>i am jack's design &#187; PHP</title>
	<atom:link href="http://www.iamjacksdesign.com/blog/category/programming/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iamjacksdesign.com/blog</link>
	<description>thoughts on freelancing and web development</description>
	<lastBuildDate>Fri, 16 Jul 2010 17:28:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>An Interview With Erik Karey On phpBayAds</title>
		<link>http://www.iamjacksdesign.com/blog/an-interview-with-erik-karey-on-phpbayads/</link>
		<comments>http://www.iamjacksdesign.com/blog/an-interview-with-erik-karey-on-phpbayads/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 15:59:02 +0000</pubDate>
		<dc:creator>Link</dc:creator>
				<category><![CDATA[Interviews]]></category>
		<category><![CDATA[Money]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.iamjacksdesign.com/blog/an-interview-with-erik-karey-on-phpbayads/</guid>
		<description><![CDATA[Yesterday, Erik Karey released phpBayAds, his eBay ads script, for free to the public. Think of phpBayAds as a self-hosted version of the old AuctionAds program. Erik was kind enough to answer some questions I had about his new release. 
With the wild popularity of BANS and phpBay Pro these days it seems like you&#8217;ve [...]<p>a</p>
]]></description>
			<content:encoded><![CDATA[<p>Yesterday, <a href="http://www.erikkarey.com/">Erik Karey</a> released <a href="http://www.erikkarey.com/phpbayads-is-here-and-its-free.html">phpBayAds</a>, his eBay ads script, for free to the public. Think of <a href="http://www.erikkarey.com/phpbayads-is-here-and-its-free.html">phpBayAds</a> as a self-hosted version of the old AuctionAds program. Erik was kind enough to answer some questions I had about his new release. <a href="http://www.erikkarey.com/phpbayads-is-here-and-its-free.html"><img class="center border"  src='http://www.iamjacksdesign.com/blog/wp-content/uploads/2008/02/phpbayadslogo.jpg' alt='phpBayAds' /></a></p>
<p><b>With the wild popularity of BANS and phpBay Pro these days it seems like you&#8217;ve hit a gap in the marketplace for eBay affiliates. Can you take a minute to describe what phpBayAds does for those that haven&#8217;t heard yet and who is most likely to benefit from using it?</b></p>
<blockquote><p>I&#8217;ve noticed the increase in the popularity of the eBay affiliate program for awhile now and I&#8217;ve even started using phpBayPro on a few websites of mine and found great success with it.  I also noticed a lot of press on AuctionAds (now ShoppingAds) and it&#8217;s shortcomings.</p>
<p>All of these things got me thinking about what type of products I could develop to capitalize on the publicity surrounding the eBay affiliate program which eventually led me to creating <a href="http://www.erikkarey.com/phpbayads-is-here-and-its-free.html">phpBayAds</a>.  </p>
<p><a href="http://www.erikkarey.com/phpbayads-is-here-and-its-free.html">phpBayAds</a> lets you create adsense-styled ads that feature images and links to eBay auction products using your own eBay Affiliate ID.   So when a user clicks on the ad and either makes a purchase or signs up for eBay you get the commissions.  </p>
<p>Although results will vary from site to site, I think <a href="http://www.erikkarey.com/phpbayads-is-here-and-its-free.html">phpBayAds</a> can benefit every webmaster who tries it as it adds an additional source of income to your websites.  <a href="http://www.erikkarey.com/phpbayads-is-here-and-its-free.html">phpBayAds</a> are fully customizable from the color of the links to the color of the border to the size of the ads and can be made to blend well with any and all websites.</p></blockquote>
<p><b>What was some of your reasoning behind releasing phpBayAds for free?</b></p>
<blockquote><p>When I initially set out to release <a href="http://www.erikkarey.com/phpbayads-is-here-and-its-free.html">phpBayAds</a> I planned to sell it for somewhere around $20.  However when I got to thinking about it I realized that at least at the start of my development that releasing it for free and getting the largest amount of users using the script is to my benefit.  </p>
<p>I truly want this script to succeed and to do that I need people to use it and I need people to provide me with feedback.  I&#8217;m hoping that as the script gets more exposure and as I add features that I may release a low cost Pro version which would include more features and functionality.</p></blockquote>
<p><b>What are some of the benefits/disadvantages to you as a developer in making people run the script on their own server?</b></p>
<blockquote><p>I think the main advantage of being able to run this script on your own server is that you are in full control.  Your ads will always be running as long as your own web host is running.  You don&#8217;t have to rely on any 3rd party website.</p>
<p>In the future as <a href="http://www.erikkarey.com/phpbayads-is-here-and-its-free.html">phpBayAds</a> grows in popularity I would like to offer a hosted version for a low monthly cost which would let those less technical users also use the script.</p></blockquote>
<p><b>What&#8217;s in store for future releases?</b></p>
<blockquote><p>I have a number of features that I&#8217;d love to add as long as <a href="http://www.erikkarey.com/phpbayads-is-here-and-its-free.html">phpBayAds</a> grows in popularity.  </p>
<p>One major feature that I plan to add in the near future is reporting.  I want to be able to track all of the clicks going through the ads, show what keywords are performing, what ad sizes are working best and present it all in one useful control panel.  </p>
<p>As I mentioned above I&#8217;d also like to offer a hosted version of the script and perhaps additional ad sizes.  </p>
<p>Lastly I&#8217;d like to make the ads more configurable by allowing you to set whether or not the ads should have images, price range of the items, geotargetting and more!  </p>
<p>The future is bright for <a href="http://www.erikkarey.com/phpbayads-is-here-and-its-free.html">phpBayAds</a> as long as people find it useful.</p></blockquote>
<p class="alert">I want to thank Erik for taking the time to answer my questions. You can learn more about <a href="http://www.erikkarey.com/phpbayads-is-here-and-its-free.html">phpBayAds</a> and download it for free over at his <a href="http://www.erikkarey.com/phpbayads-is-here-and-its-free.html">blog</a>.</p>
<p>a</p>
<img src="http://www.iamjacksdesign.com/blog/?ak_action=api_record_view&id=197&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.iamjacksdesign.com/blog/an-interview-with-erik-karey-on-phpbayads/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Parse Yahoo Weather Data With PHP</title>
		<link>http://www.iamjacksdesign.com/blog/parse-yahoo-weather-data-with-php/</link>
		<comments>http://www.iamjacksdesign.com/blog/parse-yahoo-weather-data-with-php/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 12:54:32 +0000</pubDate>
		<dc:creator>Link</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://www.iamjacksdesign.com/blog/parse-yahoo-weather-data-with-php/</guid>
		<description><![CDATA[The Yahoo! Developer Network offers all sorts of excellent APIs, RSS feeds and other resources for web developers. I&#8217;ve written in the past about using their stock quote CSV files to get stock updates and today I&#8217;ll show you a really short piece of code to gather weather data directly from Yahoo! Weather.
The code below [...]<p>a</p>
]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://developer.yahoo.com/">Yahoo! Developer Network</a> offers all sorts of excellent APIs, RSS feeds and other resources for web developers. I&#8217;ve written in the past about using their <a href="http://www.iamjacksdesign.com/blog/stock-quotes-from-yahoo-in-rss-or-csv/">stock quote CSV files</a> to get stock updates and today I&#8217;ll show you a really short piece of code to gather weather data directly from <a href="http://developer.yahoo.com/weather/index.html">Yahoo! Weather</a>.</p>
<p>The code below is pretty simple but it relies on <a href="http://magpierss.sourceforge.net/">Magpie</a> to handle the RSS stuff. I&#8217;ve <a href="http://www.iamjacksdesign.com/blog/a-decent-rss-parser-for-php/">written about Magpie before</a> if you&#8217;re interested in learning more. The trick with these weather feeds from Yahoo! is stripping out the current weather and the forecast from between the bizarre HTML markup they&#8217;ve put around it all. This chunk of code should take care of that for you.</p>
<pre name="code" class="php:nogutter">&lt;?php
	include("rss_fetch.inc");

	$zipcode = "44101";
	$feed = fetch_rss("http://xml.weather.yahoo.com/forecastrss?p=".$zipcode);

	if ($feed and !$feed->ERROR)
	{
		$items = array_slice($feed->items, 0);
		foreach ($items as $item)
		{
			$arr_weather = explode('&lt;br />', str_replace('&lt;BR />', '&lt;br />', str_replace('&lt;p />', '&lt;br />', $item['description'])));
			$arr_forecast = explode('-', $arr_weather[5]);

			$current_weather = trim($arr_weather[2]);
			$forecast_weather = trim($arr_forecast[1]);
		}
	}
?>
</pre>
<p>When this is done you&#8217;re left with a variable named <b>$current_weather</b> that contains the weather as it exists at that moment and another variable named <b>$forecast_weather</b> with the current day&#8217;s weather forecast.</p>
<p><img class="right border" src='http://www.iamjacksdesign.com/blog/wp-content/uploads/2008/01/forescore_weather.gif' alt='Fore Score Golf Stats - Course Weather' />I&#8217;ve used this chunk of code severals times on intranets I&#8217;ve built. A variation on this code that includes weather icons helps power some features at <a href="http://www.forescoregolfstats.com">Fore Score Golf Stats</a> as well. A big use there is to show the current weather at any courses a user has played at (seen on the right).</p>
<p>If you want to read some more about Yahoo&#8217;s weather RSS feeds then check out the <a href="http://developer.yahoo.com/weather/index.html">weather section</a> of their Developer Network.</p>
<p>a</p>
<img src="http://www.iamjacksdesign.com/blog/?ak_action=api_record_view&id=131&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.iamjacksdesign.com/blog/parse-yahoo-weather-data-with-php/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Simple PHP Function For Inline Comparisons</title>
		<link>http://www.iamjacksdesign.com/blog/simple-php-function-for-inline-comparisons/</link>
		<comments>http://www.iamjacksdesign.com/blog/simple-php-function-for-inline-comparisons/#comments</comments>
		<pubDate>Tue, 01 Jan 2008 22:27:05 +0000</pubDate>
		<dc:creator>Link</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.iamjacksdesign.com/blog/simple-php-function-for-inline-comparisons/</guid>
		<description><![CDATA[This will probably seem trivial and obvious to most PHP users out there but some of you might find this simple function useful. There are a lot of times when you&#8217;ll want to do a quick comparison and then, for example, give an HTML element a specific class based on what you found. The following [...]<p>a</p>
]]></description>
			<content:encoded><![CDATA[<p>This will probably seem trivial and obvious to most PHP users out there but some of you might find this simple function useful. There are a lot of times when you&#8217;ll want to do a quick comparison and then, for example, give an HTML element a specific class based on what you found. The following is a short and sweet function I include in all of my projects to make this easy to do:</p>
<pre name="code" class="php:nogutter">&lt;?php
	function check_equal($val1, $val2, $response)
	{
		if ($val1 == $val2)
		{
			return $response;
		}
	}
?>
</pre>
<p>Here&#8217;s an example of this function in action:</p>
<pre name="code" class="php:nogutter">&lt;?php
	echo '&lt;div'.check_equal($user, 1, ' class="author"').'>';
?>
</pre>
<p>In the example above, whenever the value of $user is equal to 1 then the div will be written out with the class of &#8220;author&#8221; attached to it. Now I can make some changes to my CSS to style that div differently based on the value of the PHP variable $user.</p>
<p>a</p>
<img src="http://www.iamjacksdesign.com/blog/?ak_action=api_record_view&id=121&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.iamjacksdesign.com/blog/simple-php-function-for-inline-comparisons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Programmer&#8217;s Alternative To BANS</title>
		<link>http://www.iamjacksdesign.com/blog/a-programmers-alternative-to-bans/</link>
		<comments>http://www.iamjacksdesign.com/blog/a-programmers-alternative-to-bans/#comments</comments>
		<pubDate>Wed, 26 Dec 2007 05:15:28 +0000</pubDate>
		<dc:creator>Link</dc:creator>
				<category><![CDATA[Money]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[bans]]></category>
		<category><![CDATA[ebay]]></category>
		<category><![CDATA[phpBay]]></category>

		<guid isPermaLink="false">http://www.iamjacksdesign.com/blog/a-programmers-alternative-to-bans/</guid>
		<description><![CDATA[For those in the affiliate marketing game, there is apparently a decent amount of money to be made using the affiliate program provided by eBay. The U.S. eBay affiliate program (which you can sign up for at Commission Junction if you&#8217;re interested) pays when visitors you drive to the popular auction site meet one of [...]<p>a</p>
]]></description>
			<content:encoded><![CDATA[<p>For those in the affiliate marketing game, there is apparently a decent amount of money to be made using the affiliate program provided by <a href="http://www.ebay.com/">eBay</a>. The U.S. eBay affiliate program (which you can sign up for at <a href="http://www.cj.com">Commission Junction</a> if you&#8217;re interested) pays when visitors you drive to the popular auction site meet one of these conditions:</p>
<table>
<tr>
<th class="wide">Action</th>
<th>Pay</th>
</tr>
<tr>
<td>A visitor becomes a confirmed, active user of eBay.com within 30 days of registration.</td>
<td><b>$25.00</b></td>
</tr>
<tr>
<td>A registered user places a Winning Bid.</td>
<td><b>50%</b> of the auction fees</td>
</tr>
</table>
<p>So that&#8217;s a really basic and simple overview of the <a href="http://www.ebay.com">eBay</a> affiliate program. This post is really about what you can do to convert with that program though. For most people, the easiest way to drive traffic to eBay through your affiliate account is to setup an &#8220;instant store&#8221; using the <a href="http://www.iamjacksdesign.com/blog/link/bans">Build A Niche Store</a> software. It&#8217;s better known as BANS.</p>
<p><a href="http://www.iamjacksdesign.com/blog/link/bans">BANS</a> has become incredibly popular because it is simple to use and has proven successful for a lot of people in the eBay affiliate program. When you install <a href="http://www.iamjacksdesign.com/blog/link/bans">BANS</a> you choose what eBay categories you&#8217;re interested in making a store for and the software does the rest. You can see a <a href="http://www.iamjacksdesign.com/blog/link/bans">list of stores people have created</a> on the BANS site to get an idea of what the program is capable of. BANS costs $97 and comes with a <a href="http://www.iamjacksdesign.com/blog/link/bans">lot of perks</a> for that price. It&#8217;s especially well-suited for those who don&#8217;t quite have the technical knowledge to manipulate eBay&#8217;s RSS feeds on their own.</p>
<p><a href="http://www.iamjacksdesign.com/blog/link/phpbay-pro"><img class="right" src="http://www.phpbay.com/affiliates/image.php?bid=4&#038;mid=1109" /></a>If you&#8217;re one of those people who might want a little more control over their own eBay store there&#8217;s an alternative in <a href="http://www.iamjacksdesign.com/blog/link/phpbay-pro">phpBay Pro</a>. <a href="http://www.iamjacksdesign.com/blog/link/phpbay-pro">phpBay Pro</a> is an API for PHP that wraps around the eBay RSS feeds and parses the results for you. It also encrypts links and images from eBay which is useful if you&#8217;re concerned about security in regards to your store and search engines.</p>
<p>With <a href="http://www.iamjacksdesign.com/blog/link/phpbay-pro">phpBay Pro</a> you can make a store built around keywords as opposed to the pre-defined categories available on <a href="http://www.ebay.com">eBay</a>. <a href="http://www.iamjacksdesign.com/blog/link/phpbay-pro">phpBay Pro</a> is also cheaper than BANS with a $39 price tag for the API alone. For an additional $20, you can also buy a WordPress plugin that lets you embed eBay auctions directly into posts on your blog.</p>
<p>I purchased <a href="http://www.iamjacksdesign.com/blog/link/phpbay-pro">phpBay Pro</a> for myself over the holiday weekend to use on an idle domain name I own (it&#8217;s Nintendo Wii related, so it&#8217;s probably a good candidate for this). To give you an idea of how easy <a href="http://www.iamjacksdesign.com/blog/link/phpbay-pro">phpBay Pro</a> is to use here&#8217;s an example of what the code looks like to pull down Wii related auctions:</p>
<pre name="code" class="php:nogutter">&lt;?php
require_once("ebay.php");
$keywords = "nintendo wii";

// create an instance of the ebay class
$ebay = new ebay();

// set the number of listings to display per page
$ebay->eb_frpp = "10";

// create the listings content
$ebay->listings($keywords, $category);

// display the listings
echo $ebay->html;
?>
</pre>
<p>If anyone has any experience with either <a href="http://www.iamjacksdesign.com/blog/link/bans">BANS</a> or <a href="http://www.iamjacksdesign.com/blog/link/phpbay-pro">phpBay Pro</a> I&#8217;d love to hear about it in the comments of this post.</p>
<p>a</p>
<img src="http://www.iamjacksdesign.com/blog/?ak_action=api_record_view&id=101&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.iamjacksdesign.com/blog/a-programmers-alternative-to-bans/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Build Your Own RSS Feeds With FeedCreator</title>
		<link>http://www.iamjacksdesign.com/blog/build-your-own-rss-feeds-with-feedcreator/</link>
		<comments>http://www.iamjacksdesign.com/blog/build-your-own-rss-feeds-with-feedcreator/#comments</comments>
		<pubDate>Thu, 08 Nov 2007 15:52:54 +0000</pubDate>
		<dc:creator>Link</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.iamjacksdesign.com/blog/build-your-own-rss-feeds-with-feedcreator/</guid>
		<description><![CDATA[FeedCreator, by Kai Blankenhorn, is a great PHP class to use when you want to build RSS feeds from your own content. I use this class extensively on all of the sites that make up Jack&#8217;s Sports Report and have been really happy with it.
It&#8217;s painfully easy to use and it takes care of any [...]<p>a</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.bitfolge.de/rsscreator-en.html">FeedCreator</a>, by Kai Blankenhorn, is a great PHP class to use when you want to build RSS feeds from your own content. I use this class extensively on all of the sites that make up <a href="http://www.jackssportsreport.com">Jack&#8217;s Sports Report</a> and have been really happy with it.</p>
<p>It&#8217;s painfully easy to use and it takes care of any caching requirements automatically for you. Here&#8217;s a list of FeedCreator&#8217;s main features:</p>
<ul>
<li>Creates valid feeds according to RSS 0.91, 1.0 or 2.0 as well as PIE 0.1 (deprecated), OPML 1.0, Unix mbox, ATOM 0.3, or customizable HTML or Javascript format</li>
<li>Configurable feed caching</li>
<li>Feed image</li>
<li>Includes almost all RSS 0.91 attributes</li>
<li>Intelligently truncates strings when needed</li>
</ul>
<p>There&#8217;s a really good piece of example code on the <a href="http://www.bitfolge.de/rsscreator-en.html">FeedCreator site</a> if you get stuck.</p>
<p>a</p>
<img src="http://www.iamjacksdesign.com/blog/?ak_action=api_record_view&id=52&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.iamjacksdesign.com/blog/build-your-own-rss-feeds-with-feedcreator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Decent RSS Parser for PHP</title>
		<link>http://www.iamjacksdesign.com/blog/a-decent-rss-parser-for-php/</link>
		<comments>http://www.iamjacksdesign.com/blog/a-decent-rss-parser-for-php/#comments</comments>
		<pubDate>Wed, 03 Oct 2007 17:33:31 +0000</pubDate>
		<dc:creator>Link</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.iamjacksdesign.com/blog/a-decent-rss-parser-for-php/</guid>
		<description><![CDATA[I use MagpieRSS a lot when I&#8217;m trying to parse RSS files with PHP. It forms the backbone for the spider that drives all of the sites that make up Jack&#8217;s Sports Report as well other small tasks here and there. For example, I use MagpieRSS to parse weather feeds for Fore Score Golf Stats [...]<p>a</p>
]]></description>
			<content:encoded><![CDATA[<p>I use <a href="http://magpierss.sourceforge.net/">MagpieRSS</a> a lot when I&#8217;m trying to parse RSS files with PHP. It forms the backbone for the spider that drives all of the sites that make up <a href="http://www.jackssportsreport.com">Jack&#8217;s Sports Report</a> as well other small tasks here and there. For example, I use <a href="http://magpierss.sourceforge.net/">MagpieRSS</a> to parse weather feeds for <a href="http://www.forescoregolfstats.com">Fore Score Golf Stats</a> so our users can get real-time information on their local weather and the conditions at their favorite courses.</p>
<p>There&#8217;s a major competitor to <a href="http://magpierss.sourceforge.net/">Magpie</a> in this space called <a href="http://simplepie.org/">SimplePie</a> that a lot of people prefer. Development on <a href="http://magpierss.sourceforge.net/">Magpie</a> has basically stalled since late last year while <a href="http://simplepie.org/">SimplePie</a> improvements have been coming fast and steady for awhile. You probably can&#8217;t go wrong using either one. I stick with <a href="http://magpierss.sourceforge.net/">Magpie</a> mostly because it&#8217;s what I&#8217;m familiar with. <a href="http://magpierss.sourceforge.net/">Magpie</a> is also built straight into <a href="http://www.wordpress.org">WordPress</a> now which might be advantageous to a lot of plugin developers.</p>
<p>A person could most certainly write their own RSS parser using PHP5&#8217;s XML functions. I prefer using a library because it handles most of the dirty work for me and it saves on time.</p>
<p>a</p>
<img src="http://www.iamjacksdesign.com/blog/?ak_action=api_record_view&id=43&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.iamjacksdesign.com/blog/a-decent-rss-parser-for-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Yahoo Has Changed the Location of the Stock Quote CSV</title>
		<link>http://www.iamjacksdesign.com/blog/yahoo-has-changed-the-location-of-the-stock-quote-csv/</link>
		<comments>http://www.iamjacksdesign.com/blog/yahoo-has-changed-the-location-of-the-stock-quote-csv/#comments</comments>
		<pubDate>Thu, 06 Sep 2007 00:20:39 +0000</pubDate>
		<dc:creator>Link</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.iamjacksdesign.com/blog/yahoo-has-changed-the-location-of-the-stock-quote-csv/</guid>
		<description><![CDATA[Yahoo appears to have changed the location of their stock quote CSV files. Since the most popular post on this blog is my explanation of how the Yahoo stock quote CSV file works I thought I better mention the change.
The old location was:
http://quote.yahoo.com/d/quotes.csv?s=SYMBOL&#038;f=sl1d1t1c1ohgv&#038;e=.csv
The new location is:
http://download.finance.yahoo.com/d/quotes.csv?s=SYMBOL&#038;f=sl1d1t1c1ohgv&#038;e=.csv
a
<p>a</p>
]]></description>
			<content:encoded><![CDATA[<p>Yahoo appears to have changed the location of their stock quote CSV files. Since the most popular post on this blog is my <a href="http://www.iamjacksdesign.com/blog/stock-quotes-from-yahoo-in-rss-or-csv/">explanation of how the Yahoo stock quote CSV file works</a> I thought I better mention the change.</p>
<p>The old location was:</p>
<p>http://quote.yahoo.com/d/quotes.csv?s=SYMBOL&#038;f=sl1d1t1c1ohgv&#038;e=.csv</p>
<p>The new location is:</p>
<p>http://download.finance.yahoo.com/d/quotes.csv?s=SYMBOL&#038;f=sl1d1t1c1ohgv&#038;e=.csv</p>
<p>a</p>
<img src="http://www.iamjacksdesign.com/blog/?ak_action=api_record_view&id=36&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.iamjacksdesign.com/blog/yahoo-has-changed-the-location-of-the-stock-quote-csv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check POP3 Email with PHP</title>
		<link>http://www.iamjacksdesign.com/blog/check-pop3-email-with-php/</link>
		<comments>http://www.iamjacksdesign.com/blog/check-pop3-email-with-php/#comments</comments>
		<pubDate>Thu, 08 Mar 2007 17:22:27 +0000</pubDate>
		<dc:creator>Link</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.iamjacksdesign.com/blog/check-pop3-email-with-php/</guid>
		<description><![CDATA[There&#8217;s going to come a time in your life when you&#8217;ll want to check an email account using PHP. Trust me on this. You&#8217;ll want to add an unread message counter to an intranet project, write a &#8220;Post via Email&#8221; module to your custom built CMS or even, God forbid, write your own webmail application.
When [...]<p>a</p>
]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s going to come a time in your life when you&#8217;ll want to check an email account using PHP. Trust me on this. You&#8217;ll want to add an unread message counter to an intranet project, write a &#8220;Post via Email&#8221; module to your custom built CMS or even, God forbid, write your own webmail application.</p>
<p>When this day comes you&#8217;re going to want to use the PHP POP3 Class by <a href="http://www.manuellemos.net/">Manuel Lemos</a>. It&#8217;s available on the awful looking and barely functional PHP Classes site at: <a href="http://www.phpclasses.org/browse/package/2.html">http://www.phpclasses.org/browse/package/2.html</a></p>
<p>This baby does it all. The example file is a bit of a mess but you can hack out a lot of the debug code quickly and easily to make it more manageable. You&#8217;ll be up and running in minutes.</p>
<p>a</p>
<img src="http://www.iamjacksdesign.com/blog/?ak_action=api_record_view&id=17&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.iamjacksdesign.com/blog/check-pop3-email-with-php/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Stock Quotes From Yahoo in RSS or CSV</title>
		<link>http://www.iamjacksdesign.com/blog/stock-quotes-from-yahoo-in-rss-or-csv/</link>
		<comments>http://www.iamjacksdesign.com/blog/stock-quotes-from-yahoo-in-rss-or-csv/#comments</comments>
		<pubDate>Sun, 29 Oct 2006 18:05:54 +0000</pubDate>
		<dc:creator>Link</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.iamjacksdesign.com/blog/stock-quotes-from-yahoo-in-rss-or-csv/</guid>
		<description><![CDATA[UPDATE: The location of the CSV file has changed since this post was originally written.
I&#8217;ve been trying to find a way to get stock quotes delivered to me (via email or RSS) for too long now. It turns out I just wasn&#8217;t searching very well because a solution was made back in 2005.
Check out the [...]<p>a</p>
]]></description>
			<content:encoded><![CDATA[<p class="alert"><b>UPDATE:</b> The <a href="http://www.iamjacksdesign.com/blog/yahoo-has-changed-the-location-of-the-stock-quote-csv/">location of the CSV file has changed</a> since this post was originally written.</p>
<p>I&#8217;ve been trying to find a way to get stock quotes delivered to me (via email or RSS) for too long now. It turns out I just wasn&#8217;t searching very well because a <a href="http://blog.tc.dk/item/8">solution was made</a> back in 2005.</p>
<p>Check out the freely available script at <a href="http://blog.tc.dk/item/8">TC&#8217;s Blog</a> that generates a custom RSS feed based on the stock symbols of your choice.</p>
<p>As with most things, I decided this approach was slight overkill for my needs so I cut into the meat of TC&#8217;s script and took out the part I needed most. His script runs off of <a href="http://finance.yahoo.com/">Yahoo! Finance&#8217;s</a> little known ability to deliver quotes in a CSV file.</p>
<p>So here&#8217;s the URL you need:</p>
<p>http://quote.yahoo.com/d/quotes.csv?s=SYMBOL&#038;f=sl1d1t1c1ohgv&#038;e=.csv</p>
<p>If you toss that into fopen or curl (or whatever your weapon of choice is) and then parse the result using <a href="http://www.php.net/fgetcsv">fgetcsv</a> you&#8217;ll be good to go. Here&#8217;s a breakdown of the array that <a href="http://www.php.net/fgetcsv">fgetcsv</a> will return.</p>
<p>array[0] = Symbol<br />
array[1] = Last Price<br />
array[2] = Date<br />
array[3] = Time<br />
array[4] = Change<br />
array[5] = Open Price<br />
array[6] = Day High Price<br />
array[7] = Day Low Price<br />
array[8] = Trade Volume</p>
<p>Keep in mind that Yahoo! doesn&#8217;t give you real-time quotes. Their information comes on a twenty minute delay or so. Hopefully, using <a href="http://blog.tc.dk/item/8">TC&#8217;s RSS script</a> or just going straight to the CSV source will help you out.</p>
<p>a</p>
<img src="http://www.iamjacksdesign.com/blog/?ak_action=api_record_view&id=10&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.iamjacksdesign.com/blog/stock-quotes-from-yahoo-in-rss-or-csv/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Charts &amp; Graphs Using PHP &amp; Flash</title>
		<link>http://www.iamjacksdesign.com/blog/charts-graphs-using-php-flash/</link>
		<comments>http://www.iamjacksdesign.com/blog/charts-graphs-using-php-flash/#comments</comments>
		<pubDate>Sat, 07 Oct 2006 18:38:14 +0000</pubDate>
		<dc:creator>Link</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.iamjacksdesign.com/news/?p=3</guid>
		<description><![CDATA[If you&#8217;re looking for a simple way to add charts and graphs with PHP you might want to check out PHP/SWF Charts. It&#8217;s a stupid-easy to use Flash based system that receives data from PHP includes.
There&#8217;s a free version with slightly limited features, but a full-featured single license is only $45 and it&#8217;s good for [...]<p>a</p>
]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re looking for a simple way to add charts and graphs with PHP you might want to check out <a href="http://www.maani.us/charts/index.php">PHP/SWF Charts</a>. It&#8217;s a stupid-easy to use Flash based system that receives data from PHP includes.</p>
<p>There&#8217;s a <a href="http://www.maani.us/charts/index.php?menu=License">free version with slightly limited features</a>, but a full-featured single license is only $45 and it&#8217;s good for one domain name and all its sub-domains. </p>
<p>I prefer <a href="http://www.maani.us/charts/index.php">PHP/SWF Charts</a> over alternatives like <a href="http://www.aditus.nu/jpgraph/">JpGraph</a>.</p>
<p>a</p>
<img src="http://www.iamjacksdesign.com/blog/?ak_action=api_record_view&id=3&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.iamjacksdesign.com/blog/charts-graphs-using-php-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
