<?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>Michael Hartmayer - Portfolio</title>
	<atom:link href="http://www.michaelhartmayer.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.michaelhartmayer.com</link>
	<description>Have a Leet Smoothy</description>
	<lastBuildDate>Wed, 21 Jul 2010 04:04:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Loading JavaScript Better :)</title>
		<link>http://www.michaelhartmayer.com/javascript/loading-javascript-better/</link>
		<comments>http://www.michaelhartmayer.com/javascript/loading-javascript-better/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 04:04:47 +0000</pubDate>
		<dc:creator>Michael Hartmayer</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[js javascript optimization]]></category>

		<guid isPermaLink="false">http://www.michaelhartmayer.com/?p=498</guid>
		<description><![CDATA[After watching some very stimulating google tech talks on YouTube, I walked away with some new insight on how browsers load content. The following is a technique I picked up that allows for all included javascripts to load in parallel (instead of sequentially), and to prioritize the loading of your visible page content first. The [...]]]></description>
			<content:encoded><![CDATA[<p>After watching some very stimulating google tech talks on YouTube, I walked away with some new insight on how browsers load content. The following is a technique I picked up that allows for all included javascripts to load in parallel (instead of sequentially), and to prioritize the loading of your visible page content first.</p>
<p>The following code is placed before the closing body tag (and not in the head, as is traditionally done).</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span> 
	<span style="color: #003366; font-weight: bold;">var</span> DocumentHead <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'head'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">function</span> jsOptimizedLoader<span style="color: #009900;">&#40;</span>src<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> Script <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'script'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			Script.<span style="color: #660066;">src</span> <span style="color: #339933;">=</span> src<span style="color: #339933;">;</span>
			Script.<span style="color: #660066;">type</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'text/javascript'</span><span style="color: #339933;">;</span>
			DocumentHead.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>Script<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	jsOptimizedLoader<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'js/app/foo.js'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	jsOptimizedLoader<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'js/app/bar.js'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	jsOptimizedLoader<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'js/app/boo.js'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	jsOptimizedLoader<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'js/app/far.js'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Once your DOM has finished loading, all the scripts tags are added to the head via javascript. Allowing your page to display PRIOR to spending the time loading all of those scripts will win you usability points and ease of access points with your audience.</p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Floading-javascript-better%2F&amp;title=Loading%20JavaScript%20Better%20%3A%29&amp;bodytext=After%20watching%20some%20very%20stimulating%20google%20tech%20talks%20on%20YouTube%2C%20I%20walked%20away%20with%20some%20new%20insight%20on%20how%20browsers%20load%20content.%20The%20following%20is%20a%20technique%20I%20picked%20up%20that%20allows%20for%20all%20included%20javascripts%20to%20load%20in%20parallel%20%28instead%20of%20seq" title="Digg"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Floading-javascript-better%2F" title="Sphinn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Floading-javascript-better%2F&amp;title=Loading%20JavaScript%20Better%20%3A%29&amp;notes=After%20watching%20some%20very%20stimulating%20google%20tech%20talks%20on%20YouTube%2C%20I%20walked%20away%20with%20some%20new%20insight%20on%20how%20browsers%20load%20content.%20The%20following%20is%20a%20technique%20I%20picked%20up%20that%20allows%20for%20all%20included%20javascripts%20to%20load%20in%20parallel%20%28instead%20of%20seq" title="del.icio.us"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Floading-javascript-better%2F&amp;t=Loading%20JavaScript%20Better%20%3A%29" title="Facebook"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Floading-javascript-better%2F&amp;title=Loading%20JavaScript%20Better%20%3A%29" title="Mixx"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Floading-javascript-better%2F&amp;title=Loading%20JavaScript%20Better%20%3A%29&amp;annotation=After%20watching%20some%20very%20stimulating%20google%20tech%20talks%20on%20YouTube%2C%20I%20walked%20away%20with%20some%20new%20insight%20on%20how%20browsers%20load%20content.%20The%20following%20is%20a%20technique%20I%20picked%20up%20that%20allows%20for%20all%20included%20javascripts%20to%20load%20in%20parallel%20%28instead%20of%20seq" title="Google Bookmarks"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Floading-javascript-better%2F&amp;title=Loading%20JavaScript%20Better%20%3A%29&amp;source=Michael+Hartmayer+-+Portfolio+Have+a+Leet+Smoothy&amp;summary=After%20watching%20some%20very%20stimulating%20google%20tech%20talks%20on%20YouTube%2C%20I%20walked%20away%20with%20some%20new%20insight%20on%20how%20browsers%20load%20content.%20The%20following%20is%20a%20technique%20I%20picked%20up%20that%20allows%20for%20all%20included%20javascripts%20to%20load%20in%20parallel%20%28instead%20of%20seq" title="LinkedIn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Floading-javascript-better%2F&amp;title=Loading%20JavaScript%20Better%20%3A%29" title="Live"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Floading-javascript-better%2F&amp;t=Loading%20JavaScript%20Better%20%3A%29" title="MySpace"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Floading-javascript-better%2F&amp;title=Loading%20JavaScript%20Better%20%3A%29" title="Reddit"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Floading-javascript-better%2F&amp;title=Loading%20JavaScript%20Better%20%3A%29" title="StumbleUpon"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartmayer.com/javascript/loading-javascript-better/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 Parallax Class</title>
		<link>http://www.michaelhartmayer.com/actionscript-3/as3-parallax-class/</link>
		<comments>http://www.michaelhartmayer.com/actionscript-3/as3-parallax-class/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 09:12:44 +0000</pubDate>
		<dc:creator>Michael Hartmayer</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Parallax]]></category>

		<guid isPermaLink="false">http://www.michaelhartmayer.com/?p=462</guid>
		<description><![CDATA[Just something I&#8217;ve been toying with. I&#8217;ve always wanted to write a class to generate a nice Parallax Effect. Good practice. Class can be downloaded from: http://pastebin.com/86HYEJqA Implementation would look something like this: import Machinespark.SimpleParallax.SimpleParallax; var ParallaxHolder:MovieClip = new MovieClip&#40;&#41;; addChild&#40;ParallaxHolder&#41;; &#160; var NewParallax:SimpleParallax = new SimpleParallax&#40;stage.width, stage.height&#41;; NewParallax.AddPane&#40;new mcPane3, 3&#41;; NewParallax.AddPane&#40;new mcPane2, 6&#41;; NewParallax.AddPane&#40;new [...]]]></description>
			<content:encoded><![CDATA[<p>Just something I&#8217;ve been toying with. I&#8217;ve always wanted to write a class to generate a nice Parallax Effect. Good practice.</p>
<p>Class can be downloaded from: <a href="http://pastebin.com/86HYEJqA">http://pastebin.com/86HYEJqA</a></p>
<p>Implementation would look something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> Machinespark.<span style="color: #006600;">SimpleParallax</span>.<span style="color: #006600;">SimpleParallax</span>;
<span style="color: #000000; font-weight: bold;">var</span> ParallaxHolder:<span style="color: #0066CC;">MovieClip</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">MovieClip</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	addChild<span style="color: #66cc66;">&#40;</span>ParallaxHolder<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> NewParallax:SimpleParallax = <span style="color: #000000; font-weight: bold;">new</span> SimpleParallax<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">stage</span>.<span style="color: #0066CC;">width</span>, <span style="color: #0066CC;">stage</span>.<span style="color: #0066CC;">height</span><span style="color: #66cc66;">&#41;</span>;
	NewParallax.<span style="color: #006600;">AddPane</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> mcPane3, <span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#41;</span>;
	NewParallax.<span style="color: #006600;">AddPane</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> mcPane2, <span style="color: #cc66cc;">6</span><span style="color: #66cc66;">&#41;</span>;
	NewParallax.<span style="color: #006600;">AddPane</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> mcPane1, <span style="color: #cc66cc;">9</span><span style="color: #66cc66;">&#41;</span>;
	NewParallax.<span style="color: #006600;">AttachParallax</span><span style="color: #66cc66;">&#40;</span>ParallaxHolder<span style="color: #66cc66;">&#41;</span>;
	NewParallax.<span style="color: #006600;">StartParallax</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>




Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Factionscript-3%2Fas3-parallax-class%2F&amp;title=AS3%20Parallax%20Class&amp;bodytext=Just%20something%20I%27ve%20been%20toying%20with.%20I%27ve%20always%20wanted%20to%20write%20a%20class%20to%20generate%20a%20nice%20Parallax%20Effect.%20Good%20practice.%0D%0A%0D%0AClass%20can%20be%20downloaded%20from%3A%20http%3A%2F%2Fpastebin.com%2F86HYEJqA%0D%0A%0D%0AImplementation%20would%20look%20something%20like%20this%3A%0D%0Aimport%20Machi" title="Digg"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.michaelhartmayer.com%2Factionscript-3%2Fas3-parallax-class%2F" title="Sphinn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Factionscript-3%2Fas3-parallax-class%2F&amp;title=AS3%20Parallax%20Class&amp;notes=Just%20something%20I%27ve%20been%20toying%20with.%20I%27ve%20always%20wanted%20to%20write%20a%20class%20to%20generate%20a%20nice%20Parallax%20Effect.%20Good%20practice.%0D%0A%0D%0AClass%20can%20be%20downloaded%20from%3A%20http%3A%2F%2Fpastebin.com%2F86HYEJqA%0D%0A%0D%0AImplementation%20would%20look%20something%20like%20this%3A%0D%0Aimport%20Machi" title="del.icio.us"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Factionscript-3%2Fas3-parallax-class%2F&amp;t=AS3%20Parallax%20Class" title="Facebook"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.michaelhartmayer.com%2Factionscript-3%2Fas3-parallax-class%2F&amp;title=AS3%20Parallax%20Class" title="Mixx"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.michaelhartmayer.com%2Factionscript-3%2Fas3-parallax-class%2F&amp;title=AS3%20Parallax%20Class&amp;annotation=Just%20something%20I%27ve%20been%20toying%20with.%20I%27ve%20always%20wanted%20to%20write%20a%20class%20to%20generate%20a%20nice%20Parallax%20Effect.%20Good%20practice.%0D%0A%0D%0AClass%20can%20be%20downloaded%20from%3A%20http%3A%2F%2Fpastebin.com%2F86HYEJqA%0D%0A%0D%0AImplementation%20would%20look%20something%20like%20this%3A%0D%0Aimport%20Machi" title="Google Bookmarks"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Factionscript-3%2Fas3-parallax-class%2F&amp;title=AS3%20Parallax%20Class&amp;source=Michael+Hartmayer+-+Portfolio+Have+a+Leet+Smoothy&amp;summary=Just%20something%20I%27ve%20been%20toying%20with.%20I%27ve%20always%20wanted%20to%20write%20a%20class%20to%20generate%20a%20nice%20Parallax%20Effect.%20Good%20practice.%0D%0A%0D%0AClass%20can%20be%20downloaded%20from%3A%20http%3A%2F%2Fpastebin.com%2F86HYEJqA%0D%0A%0D%0AImplementation%20would%20look%20something%20like%20this%3A%0D%0Aimport%20Machi" title="LinkedIn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Factionscript-3%2Fas3-parallax-class%2F&amp;title=AS3%20Parallax%20Class" title="Live"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Factionscript-3%2Fas3-parallax-class%2F&amp;t=AS3%20Parallax%20Class" title="MySpace"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Factionscript-3%2Fas3-parallax-class%2F&amp;title=AS3%20Parallax%20Class" title="Reddit"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Factionscript-3%2Fas3-parallax-class%2F&amp;title=AS3%20Parallax%20Class" title="StumbleUpon"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartmayer.com/actionscript-3/as3-parallax-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSV Export Class for PHP</title>
		<link>http://www.michaelhartmayer.com/php/csv-export-class-for-php/</link>
		<comments>http://www.michaelhartmayer.com/php/csv-export-class-for-php/#comments</comments>
		<pubDate>Mon, 03 May 2010 01:39:29 +0000</pubDate>
		<dc:creator>Michael Hartmayer</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[CSV]]></category>
		<category><![CDATA[Export]]></category>

		<guid isPermaLink="false">http://www.michaelhartmayer.com/?p=455</guid>
		<description><![CDATA[Since I&#8217;ve been working with a lot of different data sources lately, I&#8217;ve found myself needing an easy to use CSV Export class. So, here it is, CSVMaker.php This class makes it very easy to create CSV files on the fly, from any type of data. Here&#8217;s a usage example: $CSV = new CSVMaker&#40;&#41;; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Since I&#8217;ve been working with a lot of different data sources lately, I&#8217;ve found myself needing an easy to use CSV Export class. So, here it is, <a href="http://pastebin.com/4ZwBM6y7" target="_blank">CSVMaker.php</a></p>
<p>This class makes it very easy to create CSV files on the fly, from any type of data. Here&#8217;s a usage example:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$CSV</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> CSVMaker<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Optionally Change the Format</span>
<span style="color: #000088;">$CSV</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">csvDelimeter</span>    <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;,&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// (What seperates each value in a set Foo,Bar,Etc)</span>
<span style="color: #000088;">$CSV</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">csvLine</span>         <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// (What ends one set of data - usually a new line)</span>
<span style="color: #000088;">$CSV</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">csvCapsule</span>      <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&quot;'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// (What comes before and after each piece of data &quot;Foo&quot;,&quot;Bar&quot;,&quot;Etc&quot;)</span>
&nbsp;
<span style="color: #000088;">$CSVHeader</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$CSVHeader</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'first_name'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;First Name&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$CSVHeader</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'last_name'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Last Name&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$CSV</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">createTemplate</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$CSVHeader</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$CSVLine</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$CSVLine</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'first_name'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Michael&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$CSVLine</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'last_name'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Hartmayer&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$CSV</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addEntry</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$CSVLine</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">file_put_contents</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;MyCSVFile.csv&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$CSV</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">buildDoc</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>




Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fcsv-export-class-for-php%2F&amp;title=CSV%20Export%20Class%20for%20PHP&amp;bodytext=Since%20I%27ve%20been%20working%20with%20a%20lot%20of%20different%20data%20sources%20lately%2C%20I%27ve%20found%20myself%20needing%20an%20easy%20to%20use%20CSV%20Export%20class.%20So%2C%20here%20it%20is%2C%20CSVMaker.php%0D%0A%0D%0AThis%20class%20makes%20it%20very%20easy%20to%20create%20CSV%20files%20on%20the%20fly%2C%20from%20any%20type%20of%20data.%20Here%27" title="Digg"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fcsv-export-class-for-php%2F" title="Sphinn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fcsv-export-class-for-php%2F&amp;title=CSV%20Export%20Class%20for%20PHP&amp;notes=Since%20I%27ve%20been%20working%20with%20a%20lot%20of%20different%20data%20sources%20lately%2C%20I%27ve%20found%20myself%20needing%20an%20easy%20to%20use%20CSV%20Export%20class.%20So%2C%20here%20it%20is%2C%20CSVMaker.php%0D%0A%0D%0AThis%20class%20makes%20it%20very%20easy%20to%20create%20CSV%20files%20on%20the%20fly%2C%20from%20any%20type%20of%20data.%20Here%27" title="del.icio.us"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fcsv-export-class-for-php%2F&amp;t=CSV%20Export%20Class%20for%20PHP" title="Facebook"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fcsv-export-class-for-php%2F&amp;title=CSV%20Export%20Class%20for%20PHP" title="Mixx"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fcsv-export-class-for-php%2F&amp;title=CSV%20Export%20Class%20for%20PHP&amp;annotation=Since%20I%27ve%20been%20working%20with%20a%20lot%20of%20different%20data%20sources%20lately%2C%20I%27ve%20found%20myself%20needing%20an%20easy%20to%20use%20CSV%20Export%20class.%20So%2C%20here%20it%20is%2C%20CSVMaker.php%0D%0A%0D%0AThis%20class%20makes%20it%20very%20easy%20to%20create%20CSV%20files%20on%20the%20fly%2C%20from%20any%20type%20of%20data.%20Here%27" title="Google Bookmarks"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fcsv-export-class-for-php%2F&amp;title=CSV%20Export%20Class%20for%20PHP&amp;source=Michael+Hartmayer+-+Portfolio+Have+a+Leet+Smoothy&amp;summary=Since%20I%27ve%20been%20working%20with%20a%20lot%20of%20different%20data%20sources%20lately%2C%20I%27ve%20found%20myself%20needing%20an%20easy%20to%20use%20CSV%20Export%20class.%20So%2C%20here%20it%20is%2C%20CSVMaker.php%0D%0A%0D%0AThis%20class%20makes%20it%20very%20easy%20to%20create%20CSV%20files%20on%20the%20fly%2C%20from%20any%20type%20of%20data.%20Here%27" title="LinkedIn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fcsv-export-class-for-php%2F&amp;title=CSV%20Export%20Class%20for%20PHP" title="Live"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fcsv-export-class-for-php%2F&amp;t=CSV%20Export%20Class%20for%20PHP" title="MySpace"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fcsv-export-class-for-php%2F&amp;title=CSV%20Export%20Class%20for%20PHP" title="Reddit"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fcsv-export-class-for-php%2F&amp;title=CSV%20Export%20Class%20for%20PHP" title="StumbleUpon"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartmayer.com/php/csv-export-class-for-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fetch Google Pages Indexed Using PHP and AJAX</title>
		<link>http://www.michaelhartmayer.com/php/fetch-google-pages-indexed-using-php-and-ajax/</link>
		<comments>http://www.michaelhartmayer.com/php/fetch-google-pages-indexed-using-php-and-ajax/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 01:27:26 +0000</pubDate>
		<dc:creator>Michael Hartmayer</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.michaelhartmayer.com/?p=447</guid>
		<description><![CDATA[Here&#8217;s a quick and dirty solution I threw together to fetch how many pages of a site google has index. I needed this for one of my control panels, so my work group could track this and other metrics on the fly. gpindex.php &#60;?php // Some arbitrary access code so not everyone can access it. [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick and dirty solution I threw together to fetch how many pages of a site google has index. I needed this for one of my control panels, so my work group could track this and other metrics on the fly.</p>
<p><strong>gpindex.php</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #666666; font-style: italic;">// Some arbitrary access code so not everyone can access it. Not &quot;real&quot; security :)</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'accessCode'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">!=</span><span style="color: #0000ff;">&quot;some_password&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Access Denied&quot;</span><span style="color: #339933;">;</span> <span style="color: #990000;">exit</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000088;">$site</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'site'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$gurl</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;http://www.google.com/search?q=site:&quot;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$curl_handle</span><span style="color: #339933;">=</span><span style="color: #990000;">curl_init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$curl_handle</span><span style="color: #339933;">,</span>CURLOPT_URL<span style="color: #339933;">,</span><span style="color: #000088;">$gurl</span><span style="color: #339933;">.</span><span style="color: #000088;">$site</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$curl_handle</span><span style="color: #339933;">,</span>CURLOPT_CONNECTTIMEOUT<span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$curl_handle</span><span style="color: #339933;">,</span>CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$buffer</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_exec</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$curl_handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$curl_handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #990000;">preg_match_all</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#Results(.*)of about &lt;b&gt;(.*)&lt;/b&gt; from &lt;b&gt;<span style="color: #006699; font-weight: bold;">$site</span>&lt;/b&gt;#&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$buffer</span><span style="color: #339933;">,</span><span style="color: #000088;">$matches</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$matches</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>And here&#8217;s the Ajax via jQuery that is used to fetch the information:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&lt;script type=&quot;text/javascript&quot; src=&quot;js/patch/jquery.min.js&quot;&gt;&lt;/script&gt;
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
   $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
      $.<span style="color: #660066;">ajax</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
         url<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;http://www.example.com/path/to/gpindex.php?accessCode=some_password&amp;site=example.com&quot;</span><span style="color: #339933;">,</span>
         success<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>d<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#googleIndexed&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span>d<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot; Pages&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
&lt;p style=&quot;font-size:11px;&quot;&gt;Indexed on Google&lt;/p&gt;
&lt;p style=&quot;font-size:11px; font-weight:bold;&quot; id=&quot;googleIndexed&quot;&gt;( Fetching Data )&lt;/p&gt;</pre></div></div>




Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;title=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX&amp;bodytext=Here%27s%20a%20quick%20and%20dirty%20solution%20I%20threw%20together%20to%20fetch%20how%20many%20pages%20of%20a%20site%20google%20has%20index.%20I%20needed%20this%20for%20one%20of%20my%20control%20panels%2C%20so%20my%20work%20group%20could%20track%20this%20and%20other%20metrics%20on%20the%20fly.%0D%0A%0D%0Agpindex.php%0D%0A%0D%0A%0D%0A" title="Digg"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F" title="Sphinn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;title=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX&amp;notes=Here%27s%20a%20quick%20and%20dirty%20solution%20I%20threw%20together%20to%20fetch%20how%20many%20pages%20of%20a%20site%20google%20has%20index.%20I%20needed%20this%20for%20one%20of%20my%20control%20panels%2C%20so%20my%20work%20group%20could%20track%20this%20and%20other%20metrics%20on%20the%20fly.%0D%0A%0D%0Agpindex.php%0D%0A%0D%0A%0D%0A" title="del.icio.us"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;t=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX" title="Facebook"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;title=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX" title="Mixx"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;title=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX&amp;annotation=Here%27s%20a%20quick%20and%20dirty%20solution%20I%20threw%20together%20to%20fetch%20how%20many%20pages%20of%20a%20site%20google%20has%20index.%20I%20needed%20this%20for%20one%20of%20my%20control%20panels%2C%20so%20my%20work%20group%20could%20track%20this%20and%20other%20metrics%20on%20the%20fly.%0D%0A%0D%0Agpindex.php%0D%0A%0D%0A%0D%0A" title="Google Bookmarks"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;title=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX&amp;source=Michael+Hartmayer+-+Portfolio+Have+a+Leet+Smoothy&amp;summary=Here%27s%20a%20quick%20and%20dirty%20solution%20I%20threw%20together%20to%20fetch%20how%20many%20pages%20of%20a%20site%20google%20has%20index.%20I%20needed%20this%20for%20one%20of%20my%20control%20panels%2C%20so%20my%20work%20group%20could%20track%20this%20and%20other%20metrics%20on%20the%20fly.%0D%0A%0D%0Agpindex.php%0D%0A%0D%0A%0D%0A" title="LinkedIn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;title=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX" title="Live"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;t=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX" title="MySpace"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;title=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX" title="Reddit"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;title=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX" title="StumbleUpon"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartmayer.com/php/fetch-google-pages-indexed-using-php-and-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OfficeDuck.com &#8211; My New eCommerce Site</title>
		<link>http://www.michaelhartmayer.com/projects/office-duck/</link>
		<comments>http://www.michaelhartmayer.com/projects/office-duck/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 01:05:16 +0000</pubDate>
		<dc:creator>Michael Hartmayer</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.michaelhartmayer.com/?p=444</guid>
		<description><![CDATA[Check out my new eCommerce site. Running off of Magento, and features over 35,000 products. http://www.officeduck.com/ &#60;Quack Quack&#62; Share and Enjoy:]]></description>
			<content:encoded><![CDATA[<p>Check out my new eCommerce site. Running off of Magento, and features over 35,000 products.</p>
<p><a href="http://www.officeduck.com/">http://www.officeduck.com/</a></p>
<p>&lt;Quack Quack&gt;</p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fprojects%2Foffice-duck%2F&amp;title=OfficeDuck.com%20-%20My%20New%20eCommerce%20Site&amp;bodytext=Check%20out%20my%20new%20eCommerce%20site.%20Running%20off%20of%20Magento%2C%20and%20features%20over%2035%2C000%20products.%0D%0A%0D%0Ahttp%3A%2F%2Fwww.officeduck.com%2F%0D%0A%0D%0A%26lt%3BQuack%20Quack%26gt%3B" title="Digg"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.michaelhartmayer.com%2Fprojects%2Foffice-duck%2F" title="Sphinn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fprojects%2Foffice-duck%2F&amp;title=OfficeDuck.com%20-%20My%20New%20eCommerce%20Site&amp;notes=Check%20out%20my%20new%20eCommerce%20site.%20Running%20off%20of%20Magento%2C%20and%20features%20over%2035%2C000%20products.%0D%0A%0D%0Ahttp%3A%2F%2Fwww.officeduck.com%2F%0D%0A%0D%0A%26lt%3BQuack%20Quack%26gt%3B" title="del.icio.us"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fprojects%2Foffice-duck%2F&amp;t=OfficeDuck.com%20-%20My%20New%20eCommerce%20Site" title="Facebook"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fprojects%2Foffice-duck%2F&amp;title=OfficeDuck.com%20-%20My%20New%20eCommerce%20Site" title="Mixx"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.michaelhartmayer.com%2Fprojects%2Foffice-duck%2F&amp;title=OfficeDuck.com%20-%20My%20New%20eCommerce%20Site&amp;annotation=Check%20out%20my%20new%20eCommerce%20site.%20Running%20off%20of%20Magento%2C%20and%20features%20over%2035%2C000%20products.%0D%0A%0D%0Ahttp%3A%2F%2Fwww.officeduck.com%2F%0D%0A%0D%0A%26lt%3BQuack%20Quack%26gt%3B" title="Google Bookmarks"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fprojects%2Foffice-duck%2F&amp;title=OfficeDuck.com%20-%20My%20New%20eCommerce%20Site&amp;source=Michael+Hartmayer+-+Portfolio+Have+a+Leet+Smoothy&amp;summary=Check%20out%20my%20new%20eCommerce%20site.%20Running%20off%20of%20Magento%2C%20and%20features%20over%2035%2C000%20products.%0D%0A%0D%0Ahttp%3A%2F%2Fwww.officeduck.com%2F%0D%0A%0D%0A%26lt%3BQuack%20Quack%26gt%3B" title="LinkedIn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fprojects%2Foffice-duck%2F&amp;title=OfficeDuck.com%20-%20My%20New%20eCommerce%20Site" title="Live"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fprojects%2Foffice-duck%2F&amp;t=OfficeDuck.com%20-%20My%20New%20eCommerce%20Site" title="MySpace"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fprojects%2Foffice-duck%2F&amp;title=OfficeDuck.com%20-%20My%20New%20eCommerce%20Site" title="Reddit"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fprojects%2Foffice-duck%2F&amp;title=OfficeDuck.com%20-%20My%20New%20eCommerce%20Site" title="StumbleUpon"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartmayer.com/projects/office-duck/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The 125k Challenge</title>
		<link>http://www.michaelhartmayer.com/notice/the-125k-challenge/</link>
		<comments>http://www.michaelhartmayer.com/notice/the-125k-challenge/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 04:20:37 +0000</pubDate>
		<dc:creator>Michael Hartmayer</dc:creator>
				<category><![CDATA[Notice]]></category>

		<guid isPermaLink="false">http://www.michaelhartmayer.com/?p=431</guid>
		<description><![CDATA[This is a new thing I&#8217;m working on. My goal is to make $125,000 in one year, using only my own projects. Check it out! Official Website: http://www.125kchallenge.com/ YouTube: http://www.youtube.com/125kchallenge/ Twitter: http://www.twitter.com/125kchallenge/ Share and Enjoy:]]></description>
			<content:encoded><![CDATA[<p>This is a new thing I&#8217;m working on. My goal is to make $125,000 in one year, using only my own projects. Check it out!</p>
<p>Official Website: <a title="The 125k Challenge Official Website" href="http://www.125kchallenge.com/" target="_blank">http://www.125kchallenge.com/</a><br />
YouTube: <a title="The 125k Challenge on YouTube" href="http://www.youtube.com/125kchallenge/" target="_blank">http://www.youtube.com/125kchallenge/</a><br />
Twitter: <a title="The 125k Challenge on Twitter" href="http://www.twitter.com/125kchallenge/" target="_blank">http://www.twitter.com/125kchallenge/</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fnotice%2Fthe-125k-challenge%2F&amp;title=The%20125k%20Challenge&amp;bodytext=This%20is%20a%20new%20thing%20I%27m%20working%20on.%20My%20goal%20is%20to%20make%20%24125%2C000%20in%20one%20year%2C%20using%20only%20my%20own%20projects.%20Check%20it%20out%21%0D%0A%0D%0AOfficial%20Website%3A%20http%3A%2F%2Fwww.125kchallenge.com%2F%0D%0AYouTube%3A%20http%3A%2F%2Fwww.youtube.com%2F125kchallenge%2F%0D%0ATwitter%3A%20http%3A%2F%2Fwww.twitter.com" title="Digg"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.michaelhartmayer.com%2Fnotice%2Fthe-125k-challenge%2F" title="Sphinn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fnotice%2Fthe-125k-challenge%2F&amp;title=The%20125k%20Challenge&amp;notes=This%20is%20a%20new%20thing%20I%27m%20working%20on.%20My%20goal%20is%20to%20make%20%24125%2C000%20in%20one%20year%2C%20using%20only%20my%20own%20projects.%20Check%20it%20out%21%0D%0A%0D%0AOfficial%20Website%3A%20http%3A%2F%2Fwww.125kchallenge.com%2F%0D%0AYouTube%3A%20http%3A%2F%2Fwww.youtube.com%2F125kchallenge%2F%0D%0ATwitter%3A%20http%3A%2F%2Fwww.twitter.com" title="del.icio.us"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fnotice%2Fthe-125k-challenge%2F&amp;t=The%20125k%20Challenge" title="Facebook"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fnotice%2Fthe-125k-challenge%2F&amp;title=The%20125k%20Challenge" title="Mixx"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.michaelhartmayer.com%2Fnotice%2Fthe-125k-challenge%2F&amp;title=The%20125k%20Challenge&amp;annotation=This%20is%20a%20new%20thing%20I%27m%20working%20on.%20My%20goal%20is%20to%20make%20%24125%2C000%20in%20one%20year%2C%20using%20only%20my%20own%20projects.%20Check%20it%20out%21%0D%0A%0D%0AOfficial%20Website%3A%20http%3A%2F%2Fwww.125kchallenge.com%2F%0D%0AYouTube%3A%20http%3A%2F%2Fwww.youtube.com%2F125kchallenge%2F%0D%0ATwitter%3A%20http%3A%2F%2Fwww.twitter.com" title="Google Bookmarks"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fnotice%2Fthe-125k-challenge%2F&amp;title=The%20125k%20Challenge&amp;source=Michael+Hartmayer+-+Portfolio+Have+a+Leet+Smoothy&amp;summary=This%20is%20a%20new%20thing%20I%27m%20working%20on.%20My%20goal%20is%20to%20make%20%24125%2C000%20in%20one%20year%2C%20using%20only%20my%20own%20projects.%20Check%20it%20out%21%0D%0A%0D%0AOfficial%20Website%3A%20http%3A%2F%2Fwww.125kchallenge.com%2F%0D%0AYouTube%3A%20http%3A%2F%2Fwww.youtube.com%2F125kchallenge%2F%0D%0ATwitter%3A%20http%3A%2F%2Fwww.twitter.com" title="LinkedIn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fnotice%2Fthe-125k-challenge%2F&amp;title=The%20125k%20Challenge" title="Live"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fnotice%2Fthe-125k-challenge%2F&amp;t=The%20125k%20Challenge" title="MySpace"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fnotice%2Fthe-125k-challenge%2F&amp;title=The%20125k%20Challenge" title="Reddit"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fnotice%2Fthe-125k-challenge%2F&amp;title=The%20125k%20Challenge" title="StumbleUpon"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartmayer.com/notice/the-125k-challenge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working on New Portfolio Theme!</title>
		<link>http://www.michaelhartmayer.com/web-design/working-on-new-portfolio-theme/</link>
		<comments>http://www.michaelhartmayer.com/web-design/working-on-new-portfolio-theme/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 23:14:06 +0000</pubDate>
		<dc:creator>Michael Hartmayer</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[User Experience]]></category>
		<category><![CDATA[Wireframe]]></category>

		<guid isPermaLink="false">http://www.michaelhartmayer.com/?p=411</guid>
		<description><![CDATA[Working on a new theme for my Portfolio! The theme I&#8217;m currently using is just something I grabbed off some site, to get my portfolio up and running. Now that I have time to rework it, I&#8217;m putting a little extra time and effort into it. So far my process has been to create a [...]]]></description>
			<content:encoded><![CDATA[<p>Working on a new theme for my Portfolio! The theme I&#8217;m currently using is just something I grabbed off some site, to get my portfolio up and running. Now that I have time to rework it, I&#8217;m putting a little extra time and effort into it. So far my process has been to create a wire frame of the elements, and markup some basic functionality (I created an asset list document to work from, before creating the wires). This will make designing a whole lot easier and permit me to only have to worry about the &#8220;pretty factor&#8221;, since I&#8217;ve already mapped out my functionality and flow.</p>
<p>Check out my progress:</p>
<p><strong>Wireframes (Layout):</strong></p>
<p><a href="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newSite.jpg" rel="lightbox"><img class="alignnone size-medium wp-image-412" title="Wireframe: Layout" src="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newSite-300x170.jpg" alt="Wireframe: Layout" width="300" height="170" /></a></p>
<p><strong>Wireframe (Layout + Navigation Example):</strong></p>
<p><a href="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newSite_NAV.jpg" rel="lightbox"><img class="alignnone size-medium wp-image-413" title="Wireframe: New Layout with Navigation" src="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newSite_NAV-300x262.jpg" alt="Wireframe: New Layout with Navigation" width="300" height="262" /></a></p>
<p><strong>Designing the Background:</strong></p>
<p><a href="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newBackground.jpg" rel="lightbox"><img class="alignnone size-medium wp-image-414" title="Design: Background" src="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newBackground-300x300.jpg" alt="Design: Background" width="300" height="300" /></a></p>
<p><em>( I&#8217;ve already got grid lines in place to make sure everything will work with 960px. width )</em></p>
<p><strong>More Background Work + Some Layout:</strong></p>
<p><a href="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newLayout_0004.jpg" rel="lightbox"><img class="alignnone size-medium wp-image-415" title="Design and Layout: New Portfolio" src="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newLayout_0004-300x300.jpg" alt="Design and Layout: New Portfolio" width="300" height="300" /></a></p>
<p><strong>Trying to find a good way to present the navigation:</strong></p>
<p><a href="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newLayout_0004_Nav.jpg" rel="lightbox"><img class="alignnone size-medium wp-image-416" title="UI - Designing Navigation" src="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newLayout_0004_Nav-300x89.jpg" alt="UI - Designing Navigation" width="300" height="89" /></a></p>
<p><strong>Started Filling in the Content UI:</strong></p>
<p><strong><a href="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newLayout_0005.jpg" rel="lightbox"><img class="alignnone size-medium wp-image-420" title="New Portfolio Theme: Content and UI" src="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newLayout_0005-300x300.jpg" alt="New Portfolio Theme: Content and UI" width="300" height="300" /></a></strong></p>
<p><strong>Continued:</strong></p>
<p><strong><a href="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newLayout_0007.jpg" rel="lightbox"><img class="alignnone size-medium wp-image-422" title="New Portfolio Theme: UI and Design Continued" src="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newLayout_0007-300x300.jpg" alt="New Portfolio Theme: UI and Design Continued" width="300" height="300" /></a></strong></p>
<p><strong>Continued:</strong></p>
<p><strong><a href="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newLayout_0009.jpg" rel="lightbox"><img class="alignnone size-medium wp-image-425" title="New Portfolio Theme: UI and Design Continued" src="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newLayout_0009-300x300.jpg" alt="New Portfolio Theme - UI and Design Continued" width="300" height="300" /></a></strong></p>
<p><strong>Continued:</strong></p>
<p><strong><a href="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newLayout_0010.jpg" rel="lightbox"><img class="alignnone size-medium wp-image-427" title="New Portfolio Theme: UI and Design Continued" src="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newLayout_0010-300x300.jpg" alt="New Portfolio Theme: UI and Design Continued" width="300" height="300" /></a></strong></p>
<p><strong>Continued:</strong></p>
<p><strong><a href="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newLayout_0011.jpg" rel="lightbox"><img class="alignnone size-medium wp-image-429" title="New Portfolio Theme: Created Custom Icons" src="http://www.michaelhartmayer.com/wp-content/uploads/2009/12/newLayout_0011-300x300.jpg" alt="New Portfolio Theme: Created Custom Icons" width="300" height="300" /></a></strong></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fworking-on-new-portfolio-theme%2F&amp;title=Working%20on%20New%20Portfolio%20Theme%21&amp;bodytext=Working%20on%20a%20new%20theme%20for%20my%20Portfolio%21%20The%20theme%20I%27m%20currently%20using%20is%20just%20something%20I%20grabbed%20off%20some%20site%2C%20to%20get%20my%20portfolio%20up%20and%20running.%20Now%20that%20I%20have%20time%20to%20rework%20it%2C%20I%27m%20putting%20a%20little%20extra%20time%20and%20effort%20into%20it.%20So%20far%20my%20pro" title="Digg"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fworking-on-new-portfolio-theme%2F" title="Sphinn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fworking-on-new-portfolio-theme%2F&amp;title=Working%20on%20New%20Portfolio%20Theme%21&amp;notes=Working%20on%20a%20new%20theme%20for%20my%20Portfolio%21%20The%20theme%20I%27m%20currently%20using%20is%20just%20something%20I%20grabbed%20off%20some%20site%2C%20to%20get%20my%20portfolio%20up%20and%20running.%20Now%20that%20I%20have%20time%20to%20rework%20it%2C%20I%27m%20putting%20a%20little%20extra%20time%20and%20effort%20into%20it.%20So%20far%20my%20pro" title="del.icio.us"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fworking-on-new-portfolio-theme%2F&amp;t=Working%20on%20New%20Portfolio%20Theme%21" title="Facebook"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fworking-on-new-portfolio-theme%2F&amp;title=Working%20on%20New%20Portfolio%20Theme%21" title="Mixx"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fworking-on-new-portfolio-theme%2F&amp;title=Working%20on%20New%20Portfolio%20Theme%21&amp;annotation=Working%20on%20a%20new%20theme%20for%20my%20Portfolio%21%20The%20theme%20I%27m%20currently%20using%20is%20just%20something%20I%20grabbed%20off%20some%20site%2C%20to%20get%20my%20portfolio%20up%20and%20running.%20Now%20that%20I%20have%20time%20to%20rework%20it%2C%20I%27m%20putting%20a%20little%20extra%20time%20and%20effort%20into%20it.%20So%20far%20my%20pro" title="Google Bookmarks"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fworking-on-new-portfolio-theme%2F&amp;title=Working%20on%20New%20Portfolio%20Theme%21&amp;source=Michael+Hartmayer+-+Portfolio+Have+a+Leet+Smoothy&amp;summary=Working%20on%20a%20new%20theme%20for%20my%20Portfolio%21%20The%20theme%20I%27m%20currently%20using%20is%20just%20something%20I%20grabbed%20off%20some%20site%2C%20to%20get%20my%20portfolio%20up%20and%20running.%20Now%20that%20I%20have%20time%20to%20rework%20it%2C%20I%27m%20putting%20a%20little%20extra%20time%20and%20effort%20into%20it.%20So%20far%20my%20pro" title="LinkedIn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fworking-on-new-portfolio-theme%2F&amp;title=Working%20on%20New%20Portfolio%20Theme%21" title="Live"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fworking-on-new-portfolio-theme%2F&amp;t=Working%20on%20New%20Portfolio%20Theme%21" title="MySpace"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fworking-on-new-portfolio-theme%2F&amp;title=Working%20on%20New%20Portfolio%20Theme%21" title="Reddit"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fworking-on-new-portfolio-theme%2F&amp;title=Working%20on%20New%20Portfolio%20Theme%21" title="StumbleUpon"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartmayer.com/web-design/working-on-new-portfolio-theme/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IE6 / IE7 jQuery Fix: Anchor Image Clickable Area</title>
		<link>http://www.michaelhartmayer.com/web-design/ie6-ie7-jquery-fix-anchor-image-clickable-area/</link>
		<comments>http://www.michaelhartmayer.com/web-design/ie6-ie7-jquery-fix-anchor-image-clickable-area/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 18:45:31 +0000</pubDate>
		<dc:creator>Michael Hartmayer</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.michaelhartmayer.com/?p=396</guid>
		<description><![CDATA[IE6 and IE7 both experience a problem in which images inside of block elements inside of anchors lose their click ability. Here&#8217;s an example: &#60;a href=&#34;rss-icon.png&#34;&#62; &#60;span style=&#34;display:block; width:100px; height:100px;&#34;&#62; &#60;img src=&#34;someImage.png&#34; /&#62; &#60;/span&#62; &#60;/a&#62; Every area of the link remains click-able except for the surface consumed by someImage.png. (Note, this problem will not show [...]]]></description>
			<content:encoded><![CDATA[<p>IE6 and IE7 both experience a problem in which images inside of block elements inside of anchors lose their click ability. Here&#8217;s an example:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;rss-icon.png&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;span</span> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;display:block; width:100px; height:100px;&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;img</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;someImage.png&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Every area of the link remains click-able except for the surface consumed by someImage.png. (Note, this problem will not show in IE8, or FF)</p>
<p>Here&#8217;s a very small jQuery plugin I wrote to fix this particular issue.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	$.<span style="color: #660066;">fn</span>.<span style="color: #660066;">fixClick</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>
				.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>cursor<span style="color: #339933;">:</span><span style="color: #3366CC;">'pointer'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
				.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
					window.<span style="color: #660066;">location</span>.<span style="color: #660066;">href</span> <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'href'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
				<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Simply select your target element(s) and use this plugin to make the entire anchor click-able again. Here&#8217;s an example:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
   $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'a'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fixClick</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>




Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;title=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area&amp;bodytext=IE6%20and%20IE7%20both%20experience%20a%20problem%20in%20which%20images%20inside%20of%20block%20elements%20inside%20of%20anchors%20lose%20their%20click%20ability.%20Here%27s%20an%20example%3A%0D%0A%0D%0A%0D%0A%0D%0A%09%0D%0A%09%09%0D%0A%09%0D%0A%0D%0A%0D%0A%0D%0AEvery%20area%20of%20the%20link%20remains%20click-able%20except%20for%20the%20surface%20consumed%20by%20someImag" title="Digg"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F" title="Sphinn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;title=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area&amp;notes=IE6%20and%20IE7%20both%20experience%20a%20problem%20in%20which%20images%20inside%20of%20block%20elements%20inside%20of%20anchors%20lose%20their%20click%20ability.%20Here%27s%20an%20example%3A%0D%0A%0D%0A%0D%0A%0D%0A%09%0D%0A%09%09%0D%0A%09%0D%0A%0D%0A%0D%0A%0D%0AEvery%20area%20of%20the%20link%20remains%20click-able%20except%20for%20the%20surface%20consumed%20by%20someImag" title="del.icio.us"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;t=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area" title="Facebook"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;title=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area" title="Mixx"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;title=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area&amp;annotation=IE6%20and%20IE7%20both%20experience%20a%20problem%20in%20which%20images%20inside%20of%20block%20elements%20inside%20of%20anchors%20lose%20their%20click%20ability.%20Here%27s%20an%20example%3A%0D%0A%0D%0A%0D%0A%0D%0A%09%0D%0A%09%09%0D%0A%09%0D%0A%0D%0A%0D%0A%0D%0AEvery%20area%20of%20the%20link%20remains%20click-able%20except%20for%20the%20surface%20consumed%20by%20someImag" title="Google Bookmarks"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;title=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area&amp;source=Michael+Hartmayer+-+Portfolio+Have+a+Leet+Smoothy&amp;summary=IE6%20and%20IE7%20both%20experience%20a%20problem%20in%20which%20images%20inside%20of%20block%20elements%20inside%20of%20anchors%20lose%20their%20click%20ability.%20Here%27s%20an%20example%3A%0D%0A%0D%0A%0D%0A%0D%0A%09%0D%0A%09%09%0D%0A%09%0D%0A%0D%0A%0D%0A%0D%0AEvery%20area%20of%20the%20link%20remains%20click-able%20except%20for%20the%20surface%20consumed%20by%20someImag" title="LinkedIn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;title=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area" title="Live"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;t=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area" title="MySpace"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;title=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area" title="Reddit"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;title=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area" title="StumbleUpon"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartmayer.com/web-design/ie6-ie7-jquery-fix-anchor-image-clickable-area/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Scripting for Smarties : Application Portability 101</title>
		<link>http://www.michaelhartmayer.com/php/scripting-for-smarties-application-portability-101/</link>
		<comments>http://www.michaelhartmayer.com/php/scripting-for-smarties-application-portability-101/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 17:42:15 +0000</pubDate>
		<dc:creator>Michael Hartmayer</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripting for Smarties]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://www.michaelhartmayer.com/?p=384</guid>
		<description><![CDATA[Here&#8217;s the first &#8216;tutorial&#8217;-esque video that I&#8217;ve published in my new Channel Scripting for Smarties. Enjoy~ Share and Enjoy:]]></description>
			<content:encoded><![CDATA[<div style="text-align:center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/IjGPMf70-d0&amp;hl=en&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/IjGPMf70-d0&amp;hl=en&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object>
</div>
<p><BR /><br />
Here&#8217;s the first &#8216;tutorial&#8217;-esque video that I&#8217;ve published in my new Channel <a title="Scripting for Smarties on YouTube" href="http://www.youtube.com/ScriptingForSmarties/" target="_blank">Scripting for Smarties</a>.</p>
<p>Enjoy~</p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fscripting-for-smarties-application-portability-101%2F&amp;title=Scripting%20for%20Smarties%20%3A%20Application%20Portability%20101&amp;bodytext=%0D%0A%0D%0A%0D%0AHere%27s%20the%20first%20%27tutorial%27-esque%20video%20that%20I%27ve%20published%20in%20my%20new%20Channel%20Scripting%20for%20Smarties.%0D%0A%0D%0AEnjoy%7E" title="Digg"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fscripting-for-smarties-application-portability-101%2F" title="Sphinn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fscripting-for-smarties-application-portability-101%2F&amp;title=Scripting%20for%20Smarties%20%3A%20Application%20Portability%20101&amp;notes=%0D%0A%0D%0A%0D%0AHere%27s%20the%20first%20%27tutorial%27-esque%20video%20that%20I%27ve%20published%20in%20my%20new%20Channel%20Scripting%20for%20Smarties.%0D%0A%0D%0AEnjoy%7E" title="del.icio.us"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fscripting-for-smarties-application-portability-101%2F&amp;t=Scripting%20for%20Smarties%20%3A%20Application%20Portability%20101" title="Facebook"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fscripting-for-smarties-application-portability-101%2F&amp;title=Scripting%20for%20Smarties%20%3A%20Application%20Portability%20101" title="Mixx"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fscripting-for-smarties-application-portability-101%2F&amp;title=Scripting%20for%20Smarties%20%3A%20Application%20Portability%20101&amp;annotation=%0D%0A%0D%0A%0D%0AHere%27s%20the%20first%20%27tutorial%27-esque%20video%20that%20I%27ve%20published%20in%20my%20new%20Channel%20Scripting%20for%20Smarties.%0D%0A%0D%0AEnjoy%7E" title="Google Bookmarks"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fscripting-for-smarties-application-portability-101%2F&amp;title=Scripting%20for%20Smarties%20%3A%20Application%20Portability%20101&amp;source=Michael+Hartmayer+-+Portfolio+Have+a+Leet+Smoothy&amp;summary=%0D%0A%0D%0A%0D%0AHere%27s%20the%20first%20%27tutorial%27-esque%20video%20that%20I%27ve%20published%20in%20my%20new%20Channel%20Scripting%20for%20Smarties.%0D%0A%0D%0AEnjoy%7E" title="LinkedIn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fscripting-for-smarties-application-portability-101%2F&amp;title=Scripting%20for%20Smarties%20%3A%20Application%20Portability%20101" title="Live"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fscripting-for-smarties-application-portability-101%2F&amp;t=Scripting%20for%20Smarties%20%3A%20Application%20Portability%20101" title="MySpace"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fscripting-for-smarties-application-portability-101%2F&amp;title=Scripting%20for%20Smarties%20%3A%20Application%20Portability%20101" title="Reddit"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fscripting-for-smarties-application-portability-101%2F&amp;title=Scripting%20for%20Smarties%20%3A%20Application%20Portability%20101" title="StumbleUpon"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartmayer.com/php/scripting-for-smarties-application-portability-101/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Database Class</title>
		<link>http://www.michaelhartmayer.com/php/php-database-class/</link>
		<comments>http://www.michaelhartmayer.com/php/php-database-class/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 17:09:36 +0000</pubDate>
		<dc:creator>Michael Hartmayer</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[OOP]]></category>
		<category><![CDATA[Singleton]]></category>

		<guid isPermaLink="false">http://www.michaelhartmayer.com/?p=369</guid>
		<description><![CDATA[I just recently wrote a brand new Database class to add to my PHP library. The old one was starting to get stale. This class is capable of taking advantage of the Singleton design pattern. &#60;?php &#160; /** * @author Michael Hartmayer (michaelhartmayer[at]gmail.com) * @copyright 2009 */ &#160; class Db &#123; &#160; static $ref; // [...]]]></description>
			<content:encoded><![CDATA[<p>I just recently wrote a brand new Database class to add to my PHP library. The old one was starting to get stale. This class is capable of taking advantage of the Singleton design pattern.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/**
 * @author Michael Hartmayer (michaelhartmayer[at]gmail.com)
 * @copyright 2009
 */</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">class</span> Db <span style="color: #009900;">&#123;</span>
&nbsp;
		static <span style="color: #000088;">$ref</span><span style="color: #339933;">;</span>				<span style="color: #666666; font-style: italic;">// Database Resource</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000088;">$user</span> 	<span style="color: #339933;">=</span> <span style="color: #0000ff;">'root'</span><span style="color: #339933;">;</span>		<span style="color: #666666; font-style: italic;">// Username</span>
		<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000088;">$pass</span> 	<span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>			<span style="color: #666666; font-style: italic;">// Password</span>
		<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000088;">$host</span> 	<span style="color: #339933;">=</span> <span style="color: #0000ff;">'localhost'</span><span style="color: #339933;">;</span>		<span style="color: #666666; font-style: italic;">// Host</span>
		<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000088;">$db</span> 	<span style="color: #339933;">=</span> <span style="color: #0000ff;">'test'</span><span style="color: #339933;">;</span>		<span style="color: #666666; font-style: italic;">// Database</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000088;">$err</span> 	<span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>		<span style="color: #666666; font-style: italic;">// Error Log</span>
		<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000088;">$errHalt</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>		<span style="color: #666666; font-style: italic;">// Toggle: Halt on DB Error?</span>
&nbsp;
		static <span style="color: #000088;">$q</span><span style="color: #339933;">;</span>				<span style="color: #666666; font-style: italic;">// Last Query</span>
		static <span style="color: #000088;">$r</span><span style="color: #339933;">;</span>				<span style="color: #666666; font-style: italic;">// Last Results</span>
&nbsp;
		static <span style="color: #000088;">$singleton</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> Db<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//endMethod</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getInstance<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">::</span><span style="color: #000088;">$singleton</span><span style="color: #009900;">&#41;</span>
				<span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">::</span><span style="color: #000088;">$singleton</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #b1b100;">return</span> <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">::</span><span style="color: #000088;">$singleton</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//endMethod</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> setUser<span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$i</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//endMethod </span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> setPass<span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">pass</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$i</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//endMethod</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> setHost<span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">host</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$i</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//endMethod</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> setDb<span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">db</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$i</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//endMethod</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> setAll<span style="color: #009900;">&#40;</span><span style="color: #000088;">$h</span><span style="color: #339933;">,</span><span style="color: #000088;">$u</span><span style="color: #339933;">,</span><span style="color: #000088;">$p</span><span style="color: #339933;">,</span><span style="color: #000088;">$d</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">host</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$h</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$u</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">pass</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$p</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">db</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$d</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">return</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//endMethod</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> doConnect<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ref</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
				<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">doDisconnect</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ref</span> <span style="color: #339933;">=</span> <span style="color: #339933;">@</span><span style="color: #990000;">mysql_connect</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">host</span><span style="color: #339933;">,</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user</span><span style="color: #339933;">,</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">pass</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
				<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">dbErr</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!@</span><span style="color: #990000;">mysql_select_db</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">db</span><span style="color: #339933;">,</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ref</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>			
				<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">dbErr</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ref</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//endMethod</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> doDisconnect<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ref</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #990000;">mysql_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ref</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ref</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//endMethod</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getRef<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
			<span style="color: #b1b100;">return</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ref</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//endMethod</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> dbSet<span style="color: #009900;">&#40;</span><span style="color: #000088;">$q</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">q</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$q</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">r</span><span style="color: #339933;">=@</span><span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">q</span><span style="color: #339933;">,</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ref</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> 
				<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">dbErr</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ref</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//endMethod</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> dbGet<span style="color: #009900;">&#40;</span><span style="color: #000088;">$q</span><span style="color: #339933;">,</span><span style="color: #000088;">$type</span><span style="color: #339933;">=</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
			<span style="color: #b1b100;">switch</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$type</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'STR'</span><span style="color: #339933;">:</span>
					<span style="color: #000088;">$resultType</span> <span style="color: #339933;">=</span> MYSQL_ASSOC<span style="color: #339933;">;</span>
					<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
				<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'INT'</span><span style="color: #339933;">:</span>
					<span style="color: #000088;">$resultType</span> <span style="color: #339933;">=</span> MYSQL_NUM<span style="color: #339933;">;</span>
					<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
				<span style="color: #b1b100;">default</span><span style="color: #339933;">:</span>
					<span style="color: #000088;">$resultType</span> <span style="color: #339933;">=</span> MYSQL_BOTH<span style="color: #339933;">;</span>
					<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">q</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$q</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">r</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">q</span><span style="color: #339933;">,</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ref</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> 
				<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">dbErr</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ref</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #000088;">$resultArr</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$makeDbArr</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_fetch_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">r</span><span style="color: #339933;">,</span><span style="color: #000088;">$resultType</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$resultArr</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$makeDbArr</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//endWhile</span>
&nbsp;
			<span style="color: #b1b100;">return</span> <span style="color: #000088;">$resultArr</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//endMethod</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> dbCount<span style="color: #009900;">&#40;</span><span style="color: #000088;">$table</span><span style="color: #339933;">,</span> <span style="color: #000088;">$matchPartialQuery</span><span style="color: #339933;">=</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">q</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT COUNT(*) AS 'COUNT' FROM `<span style="color: #006699; font-weight: bold;">$table</span>` <span style="color: #006699; font-weight: bold;">$matchPartialQuery</span>;&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">r</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">dbGet</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">q</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
				<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">r</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'COUNT'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">dbErr</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">err</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//endMethod</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">function</span> dbErr<span style="color: #009900;">&#40;</span><span style="color: #000088;">$err</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$err</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">err</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$err</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">errHalt</span><span style="color: #339933;">==</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&gt;&gt; System has halted on Db Error. &lt;br /&gt;&quot;</span><span style="color: #339933;">;</span>
				<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&gt;&gt; Error Log:&lt;br /&gt;&lt;br /&gt;&quot;</span><span style="color: #339933;">;</span>
				<span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$err</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #990000;">exit</span><span style="color: #339933;">;</span>	
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #b1b100;">return</span> err<span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//endMethod</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> strClean<span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #990000;">mysql_real_escape_string</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #339933;">,</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ref</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//endMethod</span>
&nbsp;
	<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//endClass</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>




Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fphp-database-class%2F&amp;title=PHP%20Database%20Class&amp;bodytext=I%20just%20recently%20wrote%20a%20brand%20new%20Database%20class%20to%20add%20to%20my%20PHP%20library.%20The%20old%20one%20was%20starting%20to%20get%20stale.%20This%20class%20is%20capable%20of%20taking%20advantage%20of%20the%20Singleton%20design%20pattern.%0D%0A%0D%0A%0D%0A%0D%0A" title="Digg"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fphp-database-class%2F" title="Sphinn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fphp-database-class%2F&amp;title=PHP%20Database%20Class&amp;notes=I%20just%20recently%20wrote%20a%20brand%20new%20Database%20class%20to%20add%20to%20my%20PHP%20library.%20The%20old%20one%20was%20starting%20to%20get%20stale.%20This%20class%20is%20capable%20of%20taking%20advantage%20of%20the%20Singleton%20design%20pattern.%0D%0A%0D%0A%0D%0A%0D%0A" title="del.icio.us"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fphp-database-class%2F&amp;t=PHP%20Database%20Class" title="Facebook"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fphp-database-class%2F&amp;title=PHP%20Database%20Class" title="Mixx"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fphp-database-class%2F&amp;title=PHP%20Database%20Class&amp;annotation=I%20just%20recently%20wrote%20a%20brand%20new%20Database%20class%20to%20add%20to%20my%20PHP%20library.%20The%20old%20one%20was%20starting%20to%20get%20stale.%20This%20class%20is%20capable%20of%20taking%20advantage%20of%20the%20Singleton%20design%20pattern.%0D%0A%0D%0A%0D%0A%0D%0A" title="Google Bookmarks"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fphp-database-class%2F&amp;title=PHP%20Database%20Class&amp;source=Michael+Hartmayer+-+Portfolio+Have+a+Leet+Smoothy&amp;summary=I%20just%20recently%20wrote%20a%20brand%20new%20Database%20class%20to%20add%20to%20my%20PHP%20library.%20The%20old%20one%20was%20starting%20to%20get%20stale.%20This%20class%20is%20capable%20of%20taking%20advantage%20of%20the%20Singleton%20design%20pattern.%0D%0A%0D%0A%0D%0A%0D%0A" title="LinkedIn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fphp-database-class%2F&amp;title=PHP%20Database%20Class" title="Live"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fphp-database-class%2F&amp;t=PHP%20Database%20Class" title="MySpace"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fphp-database-class%2F&amp;title=PHP%20Database%20Class" title="Reddit"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Fphp-database-class%2F&amp;title=PHP%20Database%20Class" title="StumbleUpon"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartmayer.com/php/php-database-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
