<?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>Sean McNamara &#187; PHP</title>
	<atom:link href="http://seanmcn.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://seanmcn.com</link>
	<description>Student / Programmer / Game Enthusiast</description>
	<lastBuildDate>Wed, 28 Jul 2010 17:13:43 +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>Create a URL Shortener With Your Domain</title>
		<link>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F09%2Fcreate-a-url-shortener-with-your-domain%2F&amp;seed_title=Create+a+URL+Shortener+With+Your+Domain</link>
		<comments>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F09%2Fcreate-a-url-shortener-with-your-domain%2F&amp;seed_title=Create+a+URL+Shortener+With+Your+Domain#comments</comments>
		<pubDate>Thu, 24 Sep 2009 00:45:58 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[shortener]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://seanmcn.com/?p=173</guid>
		<description><![CDATA[If you use URL shortening services like TinyURL, it may be worth your while to setup a domain shortening service on your own domain. This is quiet easily done with a WordPress plugin now. YOURLS is a free PHP script created by Lester Chan and Ozh Richard that allow you to create something similar to [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.seanmcn.com/images/YOURLS.gif" alt="YOURLS" /><br />
If you use URL shortening services like <a href="http://tinyurl.com/">TinyURL</a>, it may be worth your while to setup a domain shortening service on your own domain. This is quiet easily done with a WordPress plugin now.<br />
<a href="http://yourls.org/">YOURLS</a> is a free PHP script created by Lester Chan and Ozh Richard that allow you to create something similar to TinyURL.</p>
<ul>
<li>It is easy to install.</li>
<li>It has a statistic side that allows you to keep track of all the URLs you are currently using.</li>
<li>It also easily allows you to choose between making your service open for all or just for you.</li>
<li>It lets you have customizable links instead of random characters.</li>
<li>Lastly it has a bookmarklet that allows you to make TinyURLs on the fly!</li>
</ul>
<p>Download it and try it out! <img src='http://seanmcn.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F09%2Fcreate-a-url-shortener-with-your-domain%2F&amp;seed_title=Create+a+URL+Shortener+With+Your+Domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snipt.net &#8211; Store your Code Snippets Online</title>
		<link>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F09%2Fsnipt-net%2F&amp;seed_title=Snipt.net+%26%238211%3B+Store+your+Code+Snippets+Online</link>
		<comments>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F09%2Fsnipt-net%2F&amp;seed_title=Snipt.net+%26%238211%3B+Store+your+Code+Snippets+Online#comments</comments>
		<pubDate>Fri, 18 Sep 2009 01:17:25 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[reusable]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://seanmcn.com/?p=164</guid>
		<description><![CDATA[Often when your programming well you find yourself with a lot of reusable or recyclable code. Everyone has their own little way of keeping all this code and organizing it etc. etc. for their next project. However today I found a great website now that I need my code snippets in more than one place, [...]]]></description>
			<content:encoded><![CDATA[<p><img title="Recyclable Code" src="http://www.seanmcn.com/images/Sign___recyclable_by_egresh.jpg" alt="Recyclable Code" width="300" height="242" /></p>
<p>Often when your programming well you find yourself with a lot of reusable or recyclable code. Everyone has their own little way of keeping all this code and organizing it etc. etc. for their next project. However today I found a great website now that I need my code snippets in more than one place, <a href="http://www.snipt.net">Snipt.net</a> . Not only can you store all your code privately with the ability to tag it and have it highlighted. But you can browse through the public code also, for when your really stuck with that problem! <img src='http://seanmcn.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  This will certainly be a website I&#8217;ll be adding to most used for &#8217;09</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F09%2Fsnipt-net%2F&amp;seed_title=Snipt.net+%26%238211%3B+Store+your+Code+Snippets+Online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learn PHP: Class Three</title>
		<link>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F09%2Flearn-php-class-three%2F&amp;seed_title=Learn+PHP%3A+Class+Three</link>
		<comments>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F09%2Flearn-php-class-three%2F&amp;seed_title=Learn+PHP%3A+Class+Three#comments</comments>
		<pubDate>Wed, 16 Sep 2009 04:02:20 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[lesson]]></category>

		<guid isPermaLink="false">http://seanmcn.com/?p=105</guid>
		<description><![CDATA[Today we are going to learn all about include and require! Include and require are handy to use not only in your php applications, but in general website design for sidebar’s and what not! So.. yeah.. Moving on! Include and Require include a file within another PHP script. There are four ways of doing this: [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.seanmcn.com/images/php.jpg" alt="Php" /><br />
Today we are going to learn all about include and require! Include and require are handy to use not only in your php applications, but in general website design for sidebar’s and what not! So.. yeah.. <img src='http://seanmcn.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  Moving on!</p>
<p>Include and Require include a file within another PHP script. There are four ways of doing this:</p>
<div class="codesnip-container" >* include();<br />
* include_once();<br />
* require();<br />
* require_once();</div>
<p>Now using them is seriously simple. Lets say you have sidebar.php with your links? All you have do do is the following:</p>
<div class="codesnip-container" >include(”sidebar.php”);</div>
<p>One thing to remember is how to control directories in PHP. For instance, if my file “sidebar.php” is in a folder called includes you put in:</p>
<div class="codesnip-container" >include(”includes/sidebar.php”);</div>
<p>Or to take another route of it, if my file “sidebar.php” is in the / directory and the file I want the sidebar to show on is in a folder of that: /data I would put in:</p>
<div class="codesnip-container" >include(”../sidebar.php”);</div>
<p>Now why are there four different ways to include them I hear you ask! Well they are pretty simple.</p>
<p>Include and Require are practically the same, apart from the way they give out errors. Include will continue parsing your script and just shove out an error. Require however will stop the whole script to give you an error. Really it’s all down to what you want.</p>
<p>Include_once and require_once you probably guess only allow you to include the file once. This is not only more secure but stops from silly errors where the file was just included and variables were overwritten halfway through the script. Again they give out the same errors as include and require.</p>
<p>So lets go over one of each!</p>
<div class="codesnip-container" >include(”sidebar.php”);</div>
<div class="codesnip-container" >include_once(”sidebar.php”);</div>
<div class="codesnip-container" >require(”sidebar.php”);</div>
<div class="codesnip-container" >require_once(”sidebar.php”);</div>
<p>We really are spoilt for choice aren’t we! <img src='http://seanmcn.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F09%2Flearn-php-class-three%2F&amp;seed_title=Learn+PHP%3A+Class+Three/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sneak Peak of Red Republic</title>
		<link>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F08%2Fsneak-peak-of-red-republic%2F&amp;seed_title=Sneak+Peak+of+Red+Republic</link>
		<comments>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F08%2Fsneak-peak-of-red-republic%2F&amp;seed_title=Sneak+Peak+of+Red+Republic#comments</comments>
		<pubDate>Sat, 29 Aug 2009 02:39:29 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Red Republic]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[red]]></category>
		<category><![CDATA[republic]]></category>

		<guid isPermaLink="false">http://seanmcn.com/?p=44</guid>
		<description><![CDATA[Recently I&#8217;ve been working on a friend of mine Roger&#8217;s game. Tonight I was coding the profile pages, one of the more easier and mundane tasks. I still find it fun to do though! So said with my acomplisments so far I&#8217;d give a little sneak peak into the next generation of text-based games! To [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="Red Republic" src="http://www.seanmcn.com/images/redrepublic.png" alt="" width="461" height="275" /></p>
<p>Recently I&#8217;ve been working on a friend of mine Roger&#8217;s game. Tonight I was coding the profile pages, one of the more easier and mundane tasks. I still find it fun to do though! <img src='http://seanmcn.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  So said with my acomplisments so far I&#8217;d give a little sneak peak into the next generation of text-based games! To any of you Mafiamatrix or Injustice players, Red Republic is going to blow you away when it comes out! A whole new type of gangster role playing!</p>
<p>The game is going to be ready for an Alpha release soon enough, I&#8217;ll be sure to keep you updated on its status here on the blog and in the meantime if your interested register over at <a href="http://red-republic.com/">red-republic.com</a> . As you can see the registration website is still using the old design! <img src='http://seanmcn.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F08%2Fsneak-peak-of-red-republic%2F&amp;seed_title=Sneak+Peak+of+Red+Republic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learn PHP: Class Two</title>
		<link>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F08%2Flearn-php-class-two%2F&amp;seed_title=Learn+PHP%3A+Class+Two</link>
		<comments>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F08%2Flearn-php-class-two%2F&amp;seed_title=Learn+PHP%3A+Class+Two#comments</comments>
		<pubDate>Fri, 28 Aug 2009 04:01:10 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[lesson]]></category>

		<guid isPermaLink="false">http://seanmcn.com/?p=103</guid>
		<description><![CDATA[Moving on to Class II after a long break! We will today cover PHP’s If Else Statements. Here is one in action: if ($condition) { echo “condition is true”; } Simple enough? To start with as you can see you first write the statement name, in this case “if”. Then you enclose your condition in [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.seanmcn.com/images/php.jpg" alt="Php" border="0"/><br />
Moving on to Class II after a long break! We will today cover PHP’s If Else Statements.</p>
<p>Here is one in action:</p>
<div class="codesnip-container" >if ($condition) {<br />
    echo “condition is true”;<br />
    }</div>
<p>Simple enough? To start with as you can see you first write the statement name, in this case “if”. Then you enclose your condition in brackets, [A condition is essentially a question you ask PHP.] then you add an opening “curly bracket”. The opening curly bracket basically defines the start of the code to execute of the condition of the statement evaluates to true. In this case we are wanting PHP to output the text “condition is true” if the condition is true. Then finally we have a closing curly bracket.<br />
In the above example the entire condition has simply been set to the variable $condition. Therefore what we are asking PHP is does the variable $condition exist, and if it does, does it have a value that is not NULL. [Null = Nothing, zero, zilch] In this case we didn’t actually define the variable $condition therefore the statement will evaluate to false and the code within the statement wont be executed. Therefore the above will output nothing at all. However the following code:</p>
<div class="codesnip-container" >$condition = “Here!”<br />
    if ($condition) {<br />
    echo “condition is true”;<br />
    }</div>
<p>Would output “Condition is True”.</p>
<p>Now if statements are pretty useless on their own! What you really want is if / else statements, which we will look at here!</p>
<div class="codesnip-container" >$condition = 10;<br />
    if ($condition == 5) {<br />
    echo “condition is 5″;<br />
    }</div>
<p>Basically here the variable condition is 10. PHP Checks if it is 5. As we all know 10 is not 5, so PHP does nothing. However in this statement:</p>
<div class="codesnip-container" >$condition = 10;<br />
    if ($condition == 5) {<br />
    echo “condition is 5″;<br />
    } else if ($condition < 5) {<br />
    echo “condition is less than 5″;<br />
    } else {<br />
    echo “condition is ” . $condition;<br />
    }</div>
<p>We have an if statement, an if else statement and an else statement.<br />
Basically the code explains it, but the condition is 10. If the condition is 5, PHP will output that it is 5. Otherwise if the condition is less than 5. PHP will output that it is less than five. Lastly, if nothing matches in the if or else if statements PHP will output its else. Saying Condition is 10.</p>
<p>A last sample before we head off.</p>
<div class="codesnip-container" >$condition = “yes”;<br />
    if ($condition == “no”){<br />
    echo “condition is false”;<br />
    } else if ($condition == “yes”){<br />
    echo “condition is true”;<br />
    } else {<br />
    echo “Something happened to the variable”;<br />
    }</div>
<p>Here you can see that the condition is actually a word. PHP checks it just like it would a number and outputs all the same. Here PHP would output “Condition is True”.</p>
<p>And that’s it for today! Next week we have “arrays” so until then practise! <img src='http://seanmcn.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F08%2Flearn-php-class-two%2F&amp;seed_title=Learn+PHP%3A+Class+Two/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learn PHP: Class One</title>
		<link>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F08%2Flearn-php-class-one%2F&amp;seed_title=Learn+PHP%3A+Class+One</link>
		<comments>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F08%2Flearn-php-class-one%2F&amp;seed_title=Learn+PHP%3A+Class+One#comments</comments>
		<pubDate>Fri, 21 Aug 2009 03:37:38 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[lesson]]></category>

		<guid isPermaLink="false">http://seanmcn.com/?p=92</guid>
		<description><![CDATA[So now that we have done the Prep Class its time to move on to the actual learning! Echo’ing: echo “text here”; OR echo ‘text here’; Simple as that, thats how you get PHP to output some text. Whichever you use is really up to you, there is pros and cons to what you can [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.seanmcn.com/images/php.jpg" alt="Php" border="0"/></p>
<p>So now that we have done the Prep Class its time to move on to the actual learning!</p>
<p>Echo’ing:</p>
<div class="codesnip-container" >echo “text here”;</div>
<p>OR</p>
<div class="codesnip-container" >echo ‘text here’;</div>
<p>Simple as that, thats how you get PHP to output some text. Whichever you use is really up to you, there is pros and cons to what you can do with each, you can read about them here. I prefer the double quoted version, just because I’m used to it.</p>
<p>Comments:<br />
Comments are really important within any programming language, really to tidy up your code and so you remember what each bit does later on. PHP supports two different ways of commenting, C++ Style and Shell style. I will just stick with C++ Style for today</p>
<p>Example’s of echo’ng via C++ Style are as follows:</p>
<div class="codesnip-container" >echo “Hi”; // Output: Hi<br />
    echo “Hi”; /* Hi */</div>
<p>// Comments out the rest of the line. While /* */ lets you comment as far as you want, just remember to close the comment! If you don’t get me I’ll do a quick example:<br />
This stop PHP echo’ing “Hi”</p>
<div class="codesnip-container" >/*<br />
    echo “Hi”;<br />
    */</div>
<p>This however will not.</p>
<div class="codesnip-container" >//<br />
    echo “Hi”;<br />
    //</div>
<p>But this would</p>
<div class="codesnip-container" >//echo “Hi”;</div>
<p>/* style are obviously much easier for commenting out blocks of code. But for just adding a quick comment // style is alot better!</p>
<p>Variables:</p>
<div class="codesnip-container" >$variablename = “Variable One”;<br />
    $variablename = ‘Variable One’;<br />
    $variablename = 1;</div>
<p>Variables are vital within your programming language, you will use them over and over again! Again, you can use single or double quotes, both with their pros and cons, you can also use numbers, or other variables. I’ll give you a quick example of adding within variables.</p>
<div class="codesnip-container" >$add = 2 + 1;</div>
<p>That variable would add 2 + 1. But how to get what the Variable says? Well you just use echo again!</p>
<div class="codesnip-container" >$add = 2 + 1;<br />
    echo $add;</div>
<p>The output of that would be:</p>
<div class="codesnip-container" >3</div>
<p>Nothing more, nothing less.<br />
You can also add variables within variables. As complicated as that sounds its pretty easy. I’ll give you a quick example.</p>
<div class="codesnip-container" >$one = 1;<br />
    $two = 2;<br />
    $add = $one + $two;<br />
    echo $add;</div>
<p>So lets go over what we just learnt with a quick script;</p>
<div class="codesnip-container" >$name = “Sean”; // My Name<br />
    $age = 16 +1; // Seventeen!<br />
    $nextage = $age +1; //Age I will be next year.<br />
    echo ‘Hi my name is ‘;<br />
    echo $name;<br />
    echo ‘ and I am ‘;<br />
    echo $age;<br />
    echo ‘ but I will be ‘<br />
    echo $nextage;<br />
    echo ‘ next year!’</div>
<p>Of course that is probably the longest, but easiest way you could do it! The faster way to do it would be:</p>
<div class="codesnip-container" >$name = “Sean”; // My Name<br />
    $age = 16 +1; // Seventeen!<br />
    $nextage = $age +1; //Age I will be next year.<br />
    echo “Hi my name is $name and I am $age but I will be $nextage next year!”;</div>
<p>That’s defiantly the handiest way to do it! Don’t worry I’ll go abit more into that in the next lesson! Until then, practice!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F08%2Flearn-php-class-one%2F&amp;seed_title=Learn+PHP%3A+Class+One/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learn PHP: Prep</title>
		<link>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F07%2Flearn-php-prep%2F&amp;seed_title=Learn+PHP%3A+Prep</link>
		<comments>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F07%2Flearn-php-prep%2F&amp;seed_title=Learn+PHP%3A+Prep#comments</comments>
		<pubDate>Tue, 07 Jul 2009 03:33:59 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[lesson]]></category>

		<guid isPermaLink="false">http://seanmcn.com/?p=89</guid>
		<description><![CDATA[Nearly two or three times every week I get someone asking me to teach them how to program, many of these are from an online game I help out with called Injustice. Its amazing really that people that there is some hidden secret to coding and that I can just send you a link or [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.seanmcn.com/images/php.jpg" alt="Php" /></p>
<blockquote><p>Nearly two or three times every week I get someone asking me to teach them how to program, many of these are from an online game I help out with called Injustice. Its amazing really that people that there is some hidden secret to coding and that I can just send you a link or say one or two lines and they will be able to code! I’m telling you people, its not magic!!<br />
So instead of repeating myself over and over I’m shoving this article in here! Mainly because of this, secondly because I believe people can learn PHP a little easier than some of the websites make it. So on with the show!</p></blockquote>
<p>Ok, so to actually learn PHP the best way to do it will be to install Xampp.<br />
You can download Xampp <a href="http://www.apachefriends.org/en/xampp.html">here</a>.<br />
Xampp will install Apache [Webserver] MySQL [Database] and PHP among other things, but that is all we will be using! Once you download the file, run it, its a graphical installer for windows. For linux users, I’m sure you can work out how to install it! <img src='http://seanmcn.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Once installed start the Apache and MySQL services, the control panel will be in front of you, all you have to do is tick the boxes! Yep thats it, your done installing. Now, to put files into your “webserver” you will go into C:/Xamp/ht_docs/ if you installed it in the default directory. So lets create a folder called project. And put a file called index.php in there. In the index.php file just put the word “Test”. Then all you have to do is go to, http://localhost/project/index.php and if you did everything right you should be looking at a webpage that just says “Test”. There you have it! You are ready to learn PHP!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F07%2Flearn-php-prep%2F&amp;seed_title=Learn+PHP%3A+Prep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Legit Life</title>
		<link>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F07%2Flegit-life%2F&amp;seed_title=Legit+Life</link>
		<comments>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F07%2Flegit-life%2F&amp;seed_title=Legit+Life#comments</comments>
		<pubDate>Tue, 07 Jul 2009 00:23:49 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[LegitLife]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[legit]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[mafia]]></category>
		<category><![CDATA[mmporg]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://seanmcn.com/?p=3</guid>
		<description><![CDATA[Website Name: Legit Life Development Stage: Pre-Alpha Project Started: July 2006 Legit Life, is an online text based timer game in which you aim to become the strongest character! It is expected to release in Alpha stages in early September. With this project being kept top-secret and under wraps the last year it will be [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://legitlife.net"><img class="alignnone" title="LegitLife" src="http://www.seanmcn.com/images/legitlife.jpg" alt="LEgitLife" width="358" height="202" /></a></p>
<p><strong>Website Name:</strong> Legit Life</p>
<p><strong>Development Stage:</strong> Pre-Alpha</p>
<p><strong>Project Started: </strong>July 2006</p>
<p>Legit Life, is an online text based timer game in which you aim to become the strongest character! It is expected to release in Alpha stages in early September. With this project being kept top-secret and under wraps the last year it will be interesting to see what you all think of it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanmcn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fseanmcn.com%2F2009%2F07%2Flegit-life%2F&amp;seed_title=Legit+Life/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
