Sean McNamara

Student / Programmer / Game Enthusiast

Entries for the ‘PHP’ Category

Create a URL Shortener With Your Domain

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 [...]

Learn PHP: Class Three

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: [...]

Learn PHP: Class Two

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 [...]

Learn PHP: Class One

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 [...]

Learn PHP: Prep

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 [...]