<?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>TutWow &#187; PHP</title>
	<atom:link href="http://www.tutwow.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tutwow.com</link>
	<description>Playing Creativity Tag</description>
	<lastBuildDate>Thu, 01 Jul 2010 04:18:14 +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>34 Websites That Are Still in 2008</title>
		<link>http://www.tutwow.com/php/34-websites-that-are-still-in-2008/</link>
		<comments>http://www.tutwow.com/php/34-websites-that-are-still-in-2008/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 17:11:33 +0000</pubDate>
		<dc:creator>Ben Lind</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Roundups]]></category>

		<guid isPermaLink="false">http://www.tutwow.com/?p=501</guid>
		<description><![CDATA[One of my "hobbies" every year around New Year's is to go to different websites and see who hasn't updated their footer copyright dates yet.  This article displays some of the sites I found in January 2009.]]></description>
			<content:encoded><![CDATA[<p>Every year, around this time, I love going to popular websites and seeing if they have changed their footer copyright dates yet.  I guess you could call it one of my hobbies.  This year, I was especially surprised with some of the websites I saw, so I thought I would share them with you.</p>
<p>Before I actually get to the list, I want to give you a quick tip on how to keep your blog updated forever without having to manually change the footer date.  You can use this tip on any website that supports php 4 and 5.  Let&#8217;s say that your blog&#8217;s footer looked something like this:</p>
<pre>Copyright © 2009 TutorialWow.com - All Rights Reserved</pre>
<p>To make it never have to be updated, just change it to this:</p>
<pre>Copyright © &lt;?php echo date("Y"); ?&gt; TutorialWow.com - All Rights Reserved</pre>
<p>As you can see, all I did was replace &#8220;2009&#8243; with &#8220;&lt; ?php echo date(&#8220;Y&#8221;); ?&gt;&#8221;.  This simply outputs the current year number, and makes for a care-free footer!</p>
<p><span id="more-501"></span>Without further nonsense, here are 34 websites that are still in 2008 (or even 2007 for some) &#8211; in no particular order.</p>
<h3>Google</h3>
<p><a href="http://www.google.com/"><img class="alignnone size-full wp-image-550" title="Google" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/google-2-2.jpg" alt="Google" /></a></p>
<h3>BuySellAds</h3>
<p><a href="http://buysellads.com/"><img class="alignnone size-full wp-image-574" title="BuySellAds" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/buyselladscom-online-advertising-marketplace-2.jpg" alt="BuySellAds" width="630" height="103" /></a></p>
<h3>You the Designer</h3>
<p><a href="http://www.youthedesigner.com/"><img class="alignnone size-full wp-image-568" title="You the Designer" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/you-the-designer-graphic-design-blog-2.jpg" alt="You the Designer" width="630" height="207" /></a></p>
<h3>WebUrbanist</h3>
<p><a href="http://www.weburbanist.com/"><img class="alignnone size-full wp-image-569" title="WebUrbanist" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/urban-street-art-abandoned-places-and-amazing-designs-ef80a7-weburbanist-2.jpg" alt="WebUrbanist" width="625" height="80" /></a></p>
<h3>Speckyboy</h3>
<p><a href="http://speckyboy.com/"><img class="alignnone size-full wp-image-570" title="Speckyboy" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/speckyboy-web-design-web-development-and-graphic-design-resources-2.jpg" alt="Speckyboy" width="599" height="86" /></a></p>
<h3>Six Revisions</h3>
<p><a href="http://www.sixrevisions.com/"><img class="alignnone size-full wp-image-571" title="Six Revisions" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/six-revisions-web-development-and-design-information-2.jpg" alt="Six Revisions" width="589" height="97" /></a></p>
<h3>GoMediaZine</h3>
<p><a href="http://www.gomediazine.com/"><img class="alignnone size-full wp-image-573" title="GoMediaZine" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/gomediazinec2a0ef80a7c2a0real-world-advice-from-working-artists-and-designers-2.jpg" alt="GoMediaZine" width="594" height="197" /></a></p>
<h3>Design Bump</h3>
<p><a href="http://www.designbump.com/"><img class="alignnone size-full wp-image-545" title="Design Bump" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/popular-links-ef80a7-design-bump-2.jpg" alt="Design Bump" width="592" height="158" /></a></p>
<h3>Designflavr</h3>
<p><a href="http://www.designflavr.com/"><img class="alignnone size-full wp-image-557" title="Designflavr" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/design-inspiration-visual-art-inspiration-ef80a7-designflavr-2.jpg" alt="Designflavr" width="605" height="71" /></a></p>
<h3>David Airey</h3>
<p><a href="http://www.davidairey.com/"><img class="alignnone size-full wp-image-558" title="David Airey" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/david-airey-c2bb-graphic-designer-logo-designer-2.jpg" alt="David Airey" width="590" height="141" /></a></p>
<h3>CreativeSync</h3>
<p><a href="http://www.creativesync.co.uk/"><img class="alignnone size-full wp-image-560" title="CreativeSync" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/creativesync-ef80a7-portfolios-profiles-and-jobs-2.jpg" alt="CreativeSync" width="596" height="166" /></a></p>
<h3>Color Overload</h3>
<p><a href="http://www.coloroverload.com/"><img class="alignnone size-full wp-image-563" title="Color Overload" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/color-overload-2.jpg" alt="Color Overload" width="610" height="147" /></a></p>
<h3>CrazyLeaf</h3>
<p><a href="http://www.crazyleafdesign.com/blog/"><img class="alignnone size-full wp-image-561" title="CrazyLeaf Blog" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/crazyleaf-design-blog-web-design-and-graphic-design-blog-2.jpg" alt="CrazyLeaf" width="619" height="118" /></a></p>
<h3>FBrushes</h3>
<p><a href="http://fbrushes.com/"><img class="alignnone size-full wp-image-554" title="FBrushes" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/free-photoshop-brushes-at-fbrushes-2.jpg" alt="free-photoshop-brushes-at-fbrushes-2" width="646" height="260" /></a></p>
<h3>Think Design</h3>
<p><a href="http://thinkdesignblog.com/"><img class="alignnone size-full wp-image-544" title="Think Design" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/think-design-ef80a7-graphic-design-freebies-resources-and-inspiration-2.jpg" alt="Think Design" width="616" height="110" /></a></p>
<h3>Digital Artist Toolbox</h3>
<p><a href="http://digital-artist-toolbox.com/"><img class="alignnone size-full wp-image-555" title="Digital Artist Toolbox" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/digital-artist-toolbox-2.jpg" alt="Digital Artist Toolbox" width="607" height="78" /></a></p>
<h3>Hongkiat</h3>
<p><a href="http://www.hongkiat.com/"><img class="alignnone size-full wp-image-572" title="Hongkiat" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/online-tips-for-tech-users-designers-and-bloggers-1-2.jpg" alt="Hongkiat" width="648" height="140" /></a></p>
<h3>CSS Count</h3>
<p><a href="http://www.csscount.com/"><img class="alignnone size-full wp-image-559" title="CSS Count" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/css-count-we-count-css-websites-be-inspired-and-counted-2.jpg" alt="CSS Count" width="647" height="180" /></a></p>
<h3>Knowtebook</h3>
<p><a href="http://www.knowtebook.com/"><img class="alignnone size-full wp-image-566" title="Knowtebook" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/a-community-blog-about-design-ideas-trends-wordpress-more-c2ab-knowtebook-webworkers-daily-milk-2.jpg" alt="Knowtebook" width="625" height="181" /></a></p>
<h3>BrushKing</h3>
<p><a href="http://www.brushking.eu/"><img class="alignnone size-full wp-image-553" title="BrushKing" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/free-photoshop-brushes-ef80a7-brushking-2.jpg" alt="BrushKing" width="624" height="159" /></a></p>
<h3>DesignNerd</h3>
<p><a href="http://www.blog.designnerd.net/"><img class="alignnone size-full wp-image-556" title="DesignNerd" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/designnerd-blog-ef80a7-graphic-web-designer-sydney-australia-2.jpg" alt="DesignNerd" width="659" height="110" /></a></p>
<h3>Vectips</h3>
<p><a href="http://vectips.com/"><img class="alignnone size-full wp-image-542" title="Vectips" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/vectips-1-2.jpg" alt="Vectips" width="637" height="146" /></a></p>
<h3>BittBox</h3>
<p><a href="http://www.bittbox.com/"><img class="alignnone size-full wp-image-564" title="BittBox" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/bittbox-2.jpg" alt="BittBox" width="651" height="129" /></a></p>
<h3>Veerle&#8217;s Blog</h3>
<p><a href="http://veerle.duoh.com/"><img class="alignnone size-full wp-image-541" title="Veerle's Blog" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/veerle_s-blog-20-webdesign-xhtml-css-ef80a7-graphic-design-2.jpg" alt="Veerle's Blog" width="668" height="182" /></a></p>
<h3>Colorburned</h3>
<p><a href="http://www.colorburned.com/"><img class="alignnone size-full wp-image-562" title="Colorburned" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/colorburned-professional-design-resources-2.jpg" alt="Colorburned" width="649" height="183" /></a></p>
<h3>Twitter</h3>
<p><a href="http://www.twitter.com/"><img class="alignnone size-full wp-image-543" title="Twitter" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/twitter_-what-are-you-doingef80a5-2.jpg" alt="Twitter" width="630" height="119" /></a></p>
<h3>Noupe</h3>
<p><a href="http://www.noupe.com/"><img class="alignnone size-full wp-image-546" title="Noupe" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/noupe-2.jpg" alt="Noupe" width="635" height="144" /></a></p>
<h3>ImJustCreative</h3>
<p><a href="http://www.imjustcreative.com/"><img class="alignnone size-full wp-image-548" title="ImJustCreative" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/logo-design-freelance-graphic-designer-ef80a7-imjustcreative-2.jpg" alt="ImJustCreative" width="645" height="166" /></a></p>
<h3>Just Creative Design</h3>
<p><a href="http://justcreativedesign.com/"><img class="alignnone size-full wp-image-549" title="Just Creative Design" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/just-creative-design-ef80a7-graphic-and-logo-designer-newcastle-australia-2.jpg" alt="Just Creative Design" width="610" height="57" /></a></p>
<h3>My Ink Blog</h3>
<p><a href="http://www.myinkblog.com/"><img class="alignnone size-full wp-image-547" title="My Ink Blog" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/my-ink-blog-2.jpg" alt="My Ink Blog" width="642" height="72" /></a></p>
<h3>Fuel Your Creativity</h3>
<p><a href="http://www.fuelyourcreativity.com/"><img class="alignnone size-full wp-image-552" title="Fuel Your Creativity" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/fuel-your-creativity-2.jpg" alt="Fuel Your Creativity" width="631" height="162" /></a></p>
<h3>9rules</h3>
<p><a href="http://www.9rules.com/"><img class="alignnone size-full wp-image-567" title="9rules" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/9rules-2.jpg" alt="9rules" width="623" height="105" /></a></p>
<h3>Function</h3>
<p><a href="http://wefunction.com/"><img class="alignnone size-full wp-image-551" title="Function" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/function-web-design-development-blog-2.jpg" alt="Function" width="676" height="85" /></a></p>
<h3>Web Designer Wall</h3>
<p><a href="http://www.webdesignerwall.com/"><img class="alignnone size-full wp-image-540" title="Web Designer Wall" src="http://www.tutwow.com/WP25/wp-content/uploads/2009/01/web-designer-wall-design-trends-and-tutorials-2.jpg" alt="Web Designer Wall" width="625" height="162" /></a></p>
<p>Enough of my rantings &#8211; go update your blog footer!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tutwow.com/php/34-websites-that-are-still-in-2008/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>My Coding Style</title>
		<link>http://www.tutwow.com/php/my-coding-style/</link>
		<comments>http://www.tutwow.com/php/my-coding-style/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 15:34:21 +0000</pubDate>
		<dc:creator>Ben Lind</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.tutwow.com/WP25/?p=10</guid>
		<description><![CDATA[A lot of people just throw a bunch of code into a file and hope it runs.  If it doesn't run, it's quite a nightmare to edit it again since it isn't formatted well.  However, I like to format my code in a very strict way, which I'll share with you today.]]></description>
			<content:encoded><![CDATA[<p>Over the past few years, I have learned many different programming languages.  Having typed program after program (&#8220;Hello World&#8221; after &#8220;Hello World&#8221;), I have come up with a very specific programming style for formatting my code.   Instead of just throwing a bunch of code into a text editor &#8211; hoping that I can decipher it when I look at it again in a few months &#8211; I carefully indent all of my code to the correct width, and use a lot of comments.  Below, I have put together some of my most-used practices so that you can (hopefully) benefit from and build off of them.</p>
<h2>1. Indenting Two Spaces</h2>
<p>One of the most obvious ways to make your code more readable is to indent all of your lines to the correct width.  I usually use two spaces for my tabs, an option you can specify in most text editors.</p>
<p><a href="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/indent2spaces.jpg" rel="lightbox[10]"><img class="alignnone size-full wp-image-11" title="Indenting 2 Spaces" src="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/indent2spaces.jpg" alt="Indenting 2 Spaces" width="500" height="219" /><span id="more-10"></span></a></p>
<h2>2. Code Bracket Placement</h2>
<p>As I said before, it&#8217;s always nice to keep your code style the same throughout all of your code.  One of the things I am a little &#8220;finicky&#8221; about is the placement of the code brackets that surround my code blocks (if statements, while loops, etc.).</p>
<p>I place my beginning bracket one space after the ending parenthesis of the code block header.  Take a look at this image to see what I mean:</p>
<p><a href="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/1spacebeforebracket.jpg" rel="lightbox[10]"><img class="alignnone size-full wp-image-12" title="Placement of Beginning Bracket" src="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/1spacebeforebracket.jpg" alt="Placement of Beginning Bracket" width="500" height="219" /></a></p>
<h2>3. Comment, Comment, Comment</h2>
<p>Alright, I admit it, I&#8217;m a comment freak.  I go <em>wild</em> with comments all over the place, and I have descriptions of almost every line of code in my files.  I find that if I stick to one format for all of my comments, it makes the overall readability a whole lot better.</p>
<p>When I comment whole sections of code, using the comment as a sort of &#8220;header&#8221;, I put my header text inside a multi-line comment, and place this right before the beginning of the section of code that I&#8217;m describing.</p>
<p><a href="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/headercomments.jpg" rel="lightbox[10]"><img class="alignnone size-full wp-image-13" title="Header Comments" src="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/headercomments.jpg" alt="Header Comments" width="500" height="219" /></a></p>
<p>When describing just a single line, I use a single-line comment, and tab it one or two tabs from the line I&#8217;m describing &#8211; like this:</p>
<p><a href="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/singlelinecomments.jpg" rel="lightbox[10]"><img class="alignnone size-full wp-image-14" title="Single Line Comments" src="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/singlelinecomments.jpg" alt="Single Line Comments" width="500" height="219" /></a></p>
<h2>4. Parenthesis and Brace Padding<strong><br />
</strong></h2>
<p>To make my code more readable, I add spaces inside all of my parentheses and square braces as a kind of &#8220;padding&#8221; for them.  This can look strange at first, but if you get used to it, you&#8217;ll see how much more readable it can make things.</p>
<p><a href="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/parenthesispadding.jpg" rel="lightbox[10]"><img class="alignnone size-full wp-image-15" title="Parenthesis Padding" src="http://www.tutwow.com/WP25/wp-content/uploads/2008/06/parenthesispadding.jpg" alt="Parenthesis Padding" width="500" height="219" /></a></p>
<h2>Conclusion</h2>
<p>I hope that everyone who reads this post gets something out of it, and applies it to their own coding.  Now don&#8217;t misunderstand me &#8211; this is <em>not</em> the only way to format your code &#8211; there are <em>so</em> many different ways you can do this, and the important thing is that you find the style that you&#8217;re comfortable with and stick with it.</p>
<p>Until next time, happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tutwow.com/php/my-coding-style/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
