<?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>ReformatThis &#187; PHP+MySQL</title>
	<atom:link href="http://blog.reformatthis.com/category/php-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.reformatthis.com</link>
	<description>Tips, Tricks, Comments, &#38; Nonsense</description>
	<lastBuildDate>Wed, 04 Jun 2008 00:45:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Unthaw and Retry</title>
		<link>http://blog.reformatthis.com/2007-12-01/unthaw-and-retry/</link>
		<comments>http://blog.reformatthis.com/2007-12-01/unthaw-and-retry/#comments</comments>
		<pubDate>Sat, 01 Dec 2007 06:33:59 +0000</pubDate>
		<dc:creator>RJ Matthis</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[PHP+MySQL]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.reformatthis.com/2007.12.01/unthaw-and-retry</guid>
		<description><![CDATA[Things are finally getting to a point of slowdown&#8230;somewhat anyway. Still very busy at work and at my personal business, but finally getting unburied to the point that I actually had time to write this. I do miss it, and there have been so many things happen and change. So many new blog start-ups, a [...]]]></description>
			<content:encoded><![CDATA[<div style="float: left; margin: 0px 6px 5px 0px;">
<img src="/images/unthaw.jpg" alt="Unthaw this Blog"  />
</div>
<p>Things are finally getting to a point of slowdown&#8230;somewhat anyway.  Still very busy at work and at my personal business, but finally getting unburied to the point that I actually had time to write this.  I do miss it, and there have been so many things happen and change.  So many new blog start-ups, a lot of people struggling like me to find the time or post as often.  I&#8217;ve done my best to still read here and there but I&#8217;ve really in the end have had to just read a few of the *favorites*.</p>
<p>So how do you unthaw a dormant blog, especially one this dormant?  I&#8217;m not really sure to be honest.  Hopefully I still have some of my good readers here and there.</p>
<p><b>Things to say or things I have not commented on yet:</b><br />
No more <a href="http://nice4rice.com/" target="_blank">Nice4Rice</a>!!!  Yeah, I know, its really old news by now, but I have not been blogging.  That is definitely a blog I miss.  I definitely understand Spud&#8217;s reasonings, but that type of article writing and his absolutely great reviews, I will sorely miss.</p>
<p>I do still plan on creating more PHP Hero cards.  I am still a very active PHP programmer, although I have not been able to touch the notes in forever.  I mentioned the next upcoming card being one to honor Ed, but then to go without creating one, what kind of a** am I?  Just a busy one, I apologize.  That will still be the very next card I create, and then, after that, you will see the very first PHP Hero card for a lucky lady&#8230;I can say no more&#8230;</p>
<p>I still struggle with keeping a blog that is a WordPress blog.  It really makes no sense for a php developer to do so, I guess in the end it is just a convenience factor.  A matter of convenience in regards to making it easy to post as well as just my pure laziness of not wanting to migrate to something else.  Perhaps if I had more time I would look into the other options out there.  WordPress really has the ability to be something so much greater, I really wish they would take in all the advice and ideas in a non-hostile manner.  I definitely understand why WordPress is number 1 &#8211; I just wish the responsibility they have as being the most popular would lead them towards some very needed improvements.</p>
<p>My family is doing quite well.  I have the greatest times with my Wife and kids.  Really, every free minute has been going towards spending time with them.  And it has definitely been the most valued moments in my life.</p>
<p>I hope all of you out there are doing great and if you are reading this, thank you very much for hanging out there, keeping subscribed, or just stopping by.  I appreciate all of you probably more than you know.</p>
<p><!-- WP Theme Credits --></p>
<div style="display: none" id="theme">Find more about <a href="http://www.mvlib.com/"><strong>downloading movies</strong></a> in Canada.</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.reformatthis.com/2007-12-01/unthaw-and-retry/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Terry Chay &#8211; PHP Hero</title>
		<link>http://blog.reformatthis.com/2007-07-06/terry-chay-php-hero/</link>
		<comments>http://blog.reformatthis.com/2007-07-06/terry-chay-php-hero/#comments</comments>
		<pubDate>Sat, 07 Jul 2007 04:00:02 +0000</pubDate>
		<dc:creator>RJ Matthis</dc:creator>
				<category><![CDATA[Heroes]]></category>
		<category><![CDATA[PHP Friday]]></category>
		<category><![CDATA[PHP the Language Cards]]></category>
		<category><![CDATA[PHP+MySQL]]></category>

		<guid isPermaLink="false">http://blog.reformatthis.com/2007.07.06/terry-chay-php-hero</guid>
		<description><![CDATA[Its PHP Friday! The PHP Friday Series It is time once again for another PHP the Language playing card, the third of its kind. I really loved collecting trading cards way back when in my youth. So I decided that if PHP had a trading card game, perhaps the cards may look just like this. [...]]]></description>
			<content:encoded><![CDATA[<div align="center" style="margin: 10px 0px 10px 0px;">
<img src="/images/Terry Chay.jpg" border="0" alt="PHP the Language: Terry Chay"/>
</div>
<p><b>Its PHP Friday!</b><br />
<a href="http://blog.reformatthis.com/category/php-mysql/php-friday/">The PHP Friday Series</a></p>
<p>It is time once again for another PHP the Language playing card, the third of its kind.  I really loved collecting trading cards way back when in my youth.  So I decided that if PHP had a trading card game, perhaps the cards may look just like this.  We honor our Baseball and Football heroes with collectible trading cards, lets do the same for our &#8220;PHP Heroes&#8221;.  If there was such a thing as real cards, the people I create cards for are the ones I would try to track down and collect.</p>
<p>The PHP language has some excellent personalities backing it.  One of the personalities that sticks out all the time to me is Terry Chay.  I had heard his name originally as it was associated many times with Plaxo back when he still worked for them.  But the first time I knew he was an Engineer I needed to keep an eye out for was when I heard about his OSCON presentation titled &#8220;The Underpants Gnomes Strategy Guide: An eCards Case Study&#8221;.  Anybody with that kind of sense of humor is somebody worth listening to.</p>
<p>I am a subscriber of his blog and always look forward to his next post.  His blog is always entertaining as he mixes in technical posts right along with everything else.  He has a way with mixing in comical antics along with technical posts where he still comes across as an experienced developer, intelligent, and hilarious.  You can tell that Terry is so passionate about what he does.  These type of people are what make us and the PHP language itself so lucky to have.</p>
<p><i>Next planned <b>PHP the Language Card: Ed &#8220;Funkatron&#8221; Finkler</b></i></p>
<p><small><br />
<b>&#8220;PHP the Language&#8221; Playing Cards Credits:</b><br />
The overall card design is based off of the card playing game <a href="http://www.wizards.com/magic/welcome.asp" target="_blank">Magic the Gathering</a><br />
&#8220;Poker&#8221; style cards have already been created &#8211; <a href="http://www.flickr.com/photos/calevans/sets/72157594355906012/" target="_blank">Check Them Out</a><br />
<br />
<b>Terry Chay Card Credits:</b><br />
Original image located here: <a href="http://www.flickr.com/photos/muntoh/207361001/" target="_blank">georges flicker</a><br />
<br />
<b>Terry Links From Card &#038; Elsewhere:</b><br />
<a href="http://terrychay.com/" target="_blank">http://terrychay.com/</a><br />
<a href="http://terrychay.com/blog/" target="_blank">http://terrychay.com/blog/</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.reformatthis.com/2007-07-06/terry-chay-php-hero/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP: Using switch() instead of if() + elseif()&#8217;s</title>
		<link>http://blog.reformatthis.com/2007-06-22/php-using-switch-instead-of-if-elseifs/</link>
		<comments>http://blog.reformatthis.com/2007-06-22/php-using-switch-instead-of-if-elseifs/#comments</comments>
		<pubDate>Sat, 23 Jun 2007 03:55:18 +0000</pubDate>
		<dc:creator>RJ Matthis</dc:creator>
				<category><![CDATA[PHP Friday]]></category>
		<category><![CDATA[PHP+MySQL]]></category>

		<guid isPermaLink="false">http://blog.reformatthis.com/2007.06.22/php-using-switch-instead-of-if-elseifs</guid>
		<description><![CDATA[It&#8217;s PHP Friday! The PHP Friday Series It makes for much cleaner code if you use the switch statement rather than if() followed by multiple elseif() statements. I have read many performance tests articles and switch() does process faster over if() + elseif()&#8217;s. But how does it look? How do you code it? Well below [...]]]></description>
			<content:encoded><![CDATA[<p><b>It&#8217;s PHP Friday!</b><br />
<a href="http://blog.reformatthis.com/category/php-mysql/php-friday/">The PHP Friday Series</a></p>
<p>It makes for much cleaner code if you use the switch statement rather than if() followed by multiple elseif() statements.  I have read many performance tests articles and switch() does process faster over if() + elseif()&#8217;s.  But how does it look?  How do you code it?  Well below are some examples.</p>
<p>First, lets set a variable just to have it as an example:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$example_var</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">7</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Now in most apps, you have most likely seen something similar to the following:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$example_var</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// action 1 code here</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$example_var</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// action 2 code here</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$example_var</span> <span style="color: #339933;">&gt;=</span> <span style="color: #cc66cc;">3</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$example_var</span> <span style="color: #339933;">&lt;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">6</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// action for 3 thru 6 code here</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$example_var</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">7</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// action 7 code here</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// for any other value do this</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Those very same options can be coded into a more efficient switch() statement as follows:</p>
</pre>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">switch</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$example_var</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">:</span>
		<span style="color: #666666; font-style: italic;">// action 1 code here</span>
		<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">:</span>
		<span style="color: #666666; font-style: italic;">// action 2 code here</span>
		<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">3</span><span style="color: #339933;">:</span>
	<span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span>
	<span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span>
	<span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">6</span><span style="color: #339933;">:</span>
		<span style="color: #666666; font-style: italic;">// action for 3 thru 6 code here</span>
		<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">7</span><span style="color: #339933;">:</span>
		<span style="color: #666666; font-style: italic;">// action 7 code here</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: #666666; font-style: italic;">// for any other value do this</span>
		<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>or as another switch() statement alternative that gives you an interesting perspective or way of looking at it:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">switch</span><span style="color: #009900;">&#40;</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;">case</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$example_var</span> <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: #666666; font-style: italic;">// action 1 code here</span>
		<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">case</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$example_var</span> <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: #666666; font-style: italic;">// action 2 code here</span>
		<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">case</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$example_var</span> <span style="color: #339933;">&gt;=</span> <span style="color: #cc66cc;">3</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$example_var</span> <span style="color: #339933;">&lt;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">6</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>
		<span style="color: #666666; font-style: italic;">// action for 3 thru 6 code here</span>
		<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">case</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$example_var</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">7</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>
		<span style="color: #666666; font-style: italic;">// action 7 code here</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: #666666; font-style: italic;">// for any other value do this</span>
		<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>As you can see by that last example, making the value in the switch() function to <i>true</i> or <i>false</i> and then loading switch cases that involve statements that are either true or not work just the same.</p>
<p><b>Summary:</b><br />
So the variable enclosed in the switch() statement is what you are comparing its value to all the possible cases in the switch() statement that you have assigned.  You assign each case a value or operation to see if its result matches the value of that variable.  Everything located under that very case will be performed until it reaches the <i>break</i> statement letting it know to stop.  Multiple cases can be brought together to all include the coding below it.  It will keep performing all code below a matched case so long as a <i>break</i> statement is not met.  <i>default</i> is the equivalent basically of just <i>else</i>.  Its basically the "catch-all" and will always perform in the event that no other case above matched and had a break placed below it.</p>
<p>Definitely check it out over there on the wonderful packed full of information -> php manual:<br />
<a href="http://us.php.net/switch" target="_blank">PHP Manual: switch()</a></p>
<p>In the end, switch() may seem to be a little more difficult to code if you are not used to it, but if you look, it is a much easier code to read and know exactly what is going on.  If the speed/benchmark tests that I have read about are true, than of course you want to use switch() as your primary function for this sort of coding anyway.</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.reformatthis.com/2007-06-22/php-using-switch-instead-of-if-elseifs/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Chris Shiflett &#8211; PHP Hero</title>
		<link>http://blog.reformatthis.com/2007-06-15/chris-shiflett-php-hero/</link>
		<comments>http://blog.reformatthis.com/2007-06-15/chris-shiflett-php-hero/#comments</comments>
		<pubDate>Fri, 15 Jun 2007 13:55:22 +0000</pubDate>
		<dc:creator>RJ Matthis</dc:creator>
				<category><![CDATA[Heroes]]></category>
		<category><![CDATA[PHP Friday]]></category>
		<category><![CDATA[PHP the Language Cards]]></category>
		<category><![CDATA[PHP+MySQL]]></category>

		<guid isPermaLink="false">http://blog.reformatthis.com/2007.06.15/chris-shiflett-php-hero</guid>
		<description><![CDATA[Its PHP Friday! Long ago, when I was discovering the language of PHP, I was very interested in finding out the security issues that I may come across and things I can do to prevent them. There is a name that is basically synonymous with security in PHP, and that name is Chris Shiflett. Chris [...]]]></description>
			<content:encoded><![CDATA[<div align="center" style="margin: 10px 0px 10px 0px;">
<img src="/images/Chris Shiflett.jpg" border="0" alt="PHP the Language: Chris Shiflett"/>
</div>
<p><b>Its PHP Friday!</b><br />
Long ago, when I was discovering the language of PHP, I was very interested in finding out the security issues that I may come across and things I can do to prevent them.  There is a name that is basically synonymous with security in PHP, and that name is Chris Shiflett.  Chris wrote the O&#8217;Reilly book &#8220;<a href="http://shiflett.org/books" target="_blank">Essential PHP Security</a>&#8221; in 2005 which is often referred to in many security articles and posts.  Chris has also contributed to many other PHP publications.</p>
<p>One of his biggest contributions to the PHP community is the <a href="http://www.phpsec.org" target="_blank">PHP Security Consortium</a> that he founded.  This Consortium houses many key projects including the highly recommended: &#8220;<a href="http://phpsec.org/projects/" target="_blank">PHP Security Guide</a>&#8221; free to download and a <b>must</b> read.</p>
<p>I want to close this by saying, if you choose to code a web language, you need to take responsibility and learn how to code securely.  Nobody is incapable of mistakes, but you need to absolutely do your best to code secure applications.  Security needs to take the front seat and always be in your mind when coding an application.  The first step to preventing bad code is education.  Read articles, books, and warnings.  There are many very common mistakes that you can educate yourself on how to prevent.</p>
<p><small><br />
<b>&#8220;PHP the Language&#8221; Playing Cards Credits:</b><br />
The overall card design is based off of the card playing game <a href="http://www.wizards.com/magic/welcome.asp" target="_blank">Magic the Gathering</a><br />
&#8220;Poker&#8221; style cards have already been created &#8211; <a href="http://www.flickr.com/photos/calevans/sets/72157594355906012/" target="_blank">Check Them Out</a><br />
<br />
<b>Chris Shiflett Card Credits:</b><br />
Original image located here: <a href="http://www.flickr.com/photos/muntoh/206081232/" target="_blank">georges flicker</a><br />
Chris quote found here: <a href="http://riosec.com/quotes/2" target="_blank">RioSec: Chris&#8217;s Quotes</a><br />
<br />
<b>Chris Links From Card &#038; Elsewhere:</b><br />
<a href="http://www.shiflett.org" target="_blank">http://www.shiflett.org</a><br />
<a href="http://www.phpsec.org" target="_blank">http://www.phpsec.org</a><br />
<a href="http://www.brainbulb.com" target="_blank">http://www.brainbulb.com</a><br />
<a href="http://omniti.com/people/bios/chris_shiflett" target="_blank">http://omniti.com/people/bios/chris_shiflett</a><br />
</small></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.reformatthis.com/2007-06-15/chris-shiflett-php-hero/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rasmus Lerdorf &#8211; PHP Hero</title>
		<link>http://blog.reformatthis.com/2007-06-08/php-hero-rasmus-lerdorf/</link>
		<comments>http://blog.reformatthis.com/2007-06-08/php-hero-rasmus-lerdorf/#comments</comments>
		<pubDate>Fri, 08 Jun 2007 13:55:45 +0000</pubDate>
		<dc:creator>RJ Matthis</dc:creator>
				<category><![CDATA[Heroes]]></category>
		<category><![CDATA[PHP Friday]]></category>
		<category><![CDATA[PHP the Language Cards]]></category>
		<category><![CDATA[PHP+MySQL]]></category>

		<guid isPermaLink="false">http://blog.reformatthis.com/2007.06.08/php-hero-rasmus-lerdorf</guid>
		<description><![CDATA[Quick Bio: PHP started out as a personal project of Rasmus Lerdorf. Originally called &#8220;Personal Home Page Tools&#8221;, PHP&#8217;s first 2 versions were authored by Rasmus. Future versions have been core developed by many, but of course Rasmus is still well involved in development and the community. He is currently employed by Yahoo, an extremely [...]]]></description>
			<content:encoded><![CDATA[<div align="center" style="margin: 10px 0px 10px 0px;">
<img src="/images/Rasmus Lerdorf.jpg" border="0" alt="PHP the Language: Rasmus Lerdorf"/>
</div>
<p><b>Quick Bio:</b><br />
PHP started out as a personal project of Rasmus Lerdorf.  Originally called &#8220;Personal Home Page Tools&#8221;, PHP&#8217;s first 2 versions were authored by Rasmus.  Future versions have been core developed by many, but of course Rasmus is still well involved in development and the community.  He is currently employed by Yahoo, an extremely PHP friendly employer.  This offers him much opportunity to still be quite active in all areas that are PHP.  He is constantly invited to conferences around the world.  I have read and heard many times, if you choose to code PHP, you need to know the name Rasmus Lerdorf.  You need to know PHP&#8217;s history and you need to know the man who originally brought it to us.</p>
<p>Being extremely security savvy, Rasmus decided to point out a security flaw in every single Open Source CMS program when invited to speak at OSCMS 2007.  In a recent podcast, I remember hearing Ed Finkler, a key php securing developer and member of the PHP Security Consortium, saying that he would never show code around Rasmus, too scared what Rasmus would point out.  Rasmus will not hold himself back anywhere when he sees a insecure application, it could be mid-conference and he will out you.  I really like this about him, doing all he can to improve PHP&#8217;s overall security.  For instance, if he ever commented on this post, he would probably tell me to stop using WordPress <img src='http://blog.reformatthis.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />   WordPress is PHP based, but it has a wide and long history of bad coding and security flaws.</p>
<p>Rasmus was the first big name I heard in the PHP community when I started to get involved in it years ago.  There are many big names now and loads of developers out there doing very important things, so I will be able to write many of these, but let us never forget this first one.  Rasmus, the man who started it all!  Thank you Rasmus!</p>
<p><b>Its PHP Friday!</b><br />
The first here at my blog.  In an effort to knock the dust off my blog, I wanted to create a standard that I will do my best to live by.  Every Friday I will be posting some kind of PHP related post.  It is only appropriate that the first PHP Friday post be on the first PHP developer.  I have just been so incredibly busy working at work and home.  However, what I am busy with is coding PHP.  Because of this, I come across interesting PHP items all the time.  As you know from my previous posts, the PHP movement and community means a lot to me.  So I also have a lot of heroes in that community that I would like to write quick bios about and even create these silly cards for.  Its been many years since, but as a young teen I was really into the card playing game &#8220;Magic the Gathering&#8221;.  I thought these card layouts would be kind of a cool way to honor some of my PHP Heroes.</p>
<p><small><br />
<b>&#8220;PHP the Language&#8221; Playing Cards Credits:</b><br />
The overall card design is based off of the card playing game <a href="http://www.wizards.com/magic/welcome.asp" target="_blank">Magic the Gathering</a><br />
&#8220;Poker&#8221; style cards have already been created &#8211; <a href="http://www.flickr.com/photos/calevans/sets/72157594355906012/" target="_blank">Check Them Out</a><br />
<br />
<b>Rasmus Lerdorf Card Credits:</b><br />
Original image located here: <a href="http://flickr.com/photos/chrys/56838713/in/photostream/" target="_blank">chrys flicker</a><br />
Rasmus quote found here: <a href="http://www.codewalkers.com/c/a/Miscellaneous/Quotes-from-Rasmus-Lerdorf/" target="_blank">Matt Wade Article</a><br />
<br />
<b>Rasmus Links From Card &#038; Elsewhere:</b><br />
<a href="http://www.lerdorf.com/" target="_blank">http://www.lerdorf.com/</a><br />
<a href="http://blog.360.yahoo.com/rlerdorf" target="_blank">http://blog.360.yahoo.com/rlerdorf</a><br />
<a href="http://toys.lerdorf.com/" target="_blank">http://toys.lerdorf.com/</a><br />
</small></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.reformatthis.com/2007-06-08/php-hero-rasmus-lerdorf/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How Poetic Am I?  The PHP Tree&#8230;</title>
		<link>http://blog.reformatthis.com/2007-04-27/how-poetic-am-i/</link>
		<comments>http://blog.reformatthis.com/2007-04-27/how-poetic-am-i/#comments</comments>
		<pubDate>Sat, 28 Apr 2007 04:49:56 +0000</pubDate>
		<dc:creator>RJ Matthis</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Nonsense]]></category>
		<category><![CDATA[PHP+MySQL]]></category>

		<guid isPermaLink="false">http://blog.reformatthis.com/2007.04.27/how-poetic-am-i</guid>
		<description><![CDATA[&#8220;Uh Oh!&#8221; as my daughter would say. I was tagged to write a poem, yes thats right, me. Kelly Cho tagged me in her poetry post that was originally started by Stretshâ€™s meme to see how poetic bloggers are. Lets see, its been somewhere around 10+ years since I had to write a poem, so [...]]]></description>
			<content:encoded><![CDATA[<div style="float: left; margin: 0px 6px 0px 0px;">
<img src="/images/php_tree.jpg" alt="The PHP Tree" /><br />
<img src="/inc/reflect_v2.php?img=/images/php_tree.jpg&#038;height=25" alt="" />
</div>
<p>&#8220;Uh Oh!&#8221; as my daughter would say.  I was tagged to write a poem, yes thats right, me.  <a href="http://www.kellycho.com/the-blue-beyond-a-poem/" target="_blank">Kelly Cho tagged me</a> in her poetry post that was originally started by <a href="http://www.afewgoodnotes.com/2007/04/19/how-poetic-are-bloggers/" target="_blank">Stretshâ€™s meme to see how poetic bloggers are</a>.  Lets see, its been somewhere around 10+ years since I had to write a poem, so lets see if I can put something together here.  This will be an original piece, and I do mean piece, by RJ &#8220;Bobs&#8221; Matthis.  I definitely know I am not a poet, but lets see if I can have fun with this anyway <img src='http://blog.reformatthis.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div style="height:30px;">
</div>
<blockquote><p>
<b><u>The PHP Tree&#8230;</u></b></p>
<p>From your roots that were planted by Rasmus Lerdorf<br />
To your expanding branches fed by Coder&#8217;s hard work<br />
Oh why do people refuse to use <i><a href="http://blog.reformatthis.com/2007.03.28/its-called-strtotime-do-you-use-it">strtotime()</a></i>?<br />
The correct function for the job makes your app sublime</p>
<p>Using <i>substr()</i> I can return chosen partial strings<br />
Or I will start a <i>while()</i> loop that returns many things<br />
Always use a <i>switch()</i> statement if options are many<br />
Too many <i>elseif()</i> statements will drag you down plenty</p>
<p>Filter the input and always escape output if User Entry<br />
Security is most important, not just complementary<br />
Preventing MySQL injections is a very important thing!<br />
So always be sure to use <i>mysql_real_escape_string()</i> </p>
<p>My PHP Tree, how beautiful are your functions<br />
Since finding you I have never felt any compunction<br />
Using your objects &#038; functions makes me a happy fellow<br />
Oh PHP, you have had me ever since typing <i>echo()</i>
</p></blockquote>
<p><i>by RJ &#8220;Bobs&#8221; Matthis</i></p>
<div style="height:30px;">
</div>
<p>So thats it, that is my poem.  Basically the logicalness you would expect from a programmer, you&#8217;re just lucky I didn&#8217;t throw in some binary chains (010101010101) in there somehow.  So if you are interested in sharing your poetic spirit, I would like to tag the following 3 people: <a href="http://samanathon.com" target="_blank">Saman</a>, <a href="http://two-perfect.blogspot.com/" target="_blank">2Perfect</a>, &#038; <a href="http://www.dietriffic.com/" target="_blank">Melanie</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.reformatthis.com/2007-04-27/how-poetic-am-i/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Its called &#8220;strtotime()&#8221;, do you use it?</title>
		<link>http://blog.reformatthis.com/2007-03-28/its-called-strtotime-do-you-use-it/</link>
		<comments>http://blog.reformatthis.com/2007-03-28/its-called-strtotime-do-you-use-it/#comments</comments>
		<pubDate>Wed, 28 Mar 2007 16:43:00 +0000</pubDate>
		<dc:creator>RJ Matthis</dc:creator>
				<category><![CDATA[PHP+MySQL]]></category>
		<category><![CDATA[Tips+Tricks]]></category>

		<guid isPermaLink="false">http://blog.reformatthis.com/2007.03.28/its-called-strtotime-do-you-use-it</guid>
		<description><![CDATA[I am a user note maintainer on the php Documentation team. I spend a lot of time everyday reading new notes and comments that have been added to the documentation. It is us maintainers that decide whether a user note stays in the documentation or needs to be removed. We simply just have to ask [...]]]></description>
			<content:encoded><![CDATA[<div style="float: left; margin: 0px 6px 0px 0px;">
<img src="/images/php.jpg" alt="php - PHP: Hypertext Preprocessor" /><br />
<img src="/inc/reflect_v2.php?img=/images/php.jpg&#038;height=25" alt="" />
</div>
<p>I am a user note maintainer on the php Documentation team.  I spend a lot of time everyday reading new notes and comments that have been added to the documentation.  It is us maintainers that decide whether a user note stays in the documentation or needs to be removed.  We simply just have to ask ourselves: &#8220;Does this note or comment truly bring a good amount of benefit to the reader, or is it just taking up space and/or repeating what has previously been said?&#8221;.</p>
<p>There are definitely some gems.  A lot of passionate people out there come up with some excellent ideas, examples, and suggestions.  If that was all there was, we would not be needed to help maintain the user notes.  Unfortunately, the majority of the notes fall more into the garbage category.</p>
<p>I wanted to take this opportunity to talk about a certain php function that just does not get used in situations it ought to be used in.  I am talking about <a href="http://www.php.net/strtotime" title="PHP Manual - strtotime()">strtotime()</a>.  I can not tell you home many times I have had to delete a note because it consisted of 10+ lines of code that in the end, determined what day was last Monday.  With strtotime(), its as easy as writing strtotime(&#8220;Last Monday&#8221;) &#8211; and than bam, you are returned the Unix time stamp of last Monday.</p>
<p>Is strtotime() limited to just this use? &#8211; NO!  They have packed in so many amazing string variables into this function that its ease of use is amazing.  If you have a badly formatted date string that strtotime() does not understand, its easy enough to correct that date string and put it in a readable format with other php functions and still in the end, you have coded so much less than you would have if you were using some of the functions I have seen.</p>
<p>I guess I would understand if this function was a php5 only function, since it seems so many people are out there and not up to date with the latest php.  But that is not the case, strtotime has been available since php4!  This simple little function can be so useful.  I highly suggest that if you code php and deal with a lot of awkward formed date strings, you need to look into this function.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.reformatthis.com/2007-03-28/its-called-strtotime-do-you-use-it/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

