PHP Classes - Week 1 : The basic Hello, World  

Posted by John Clarke, Business Partner, jc-Interactive

So, in a recent request, I have come to notice that there are quite a few people that don't know the power of PHP yet. ANYONE, and I really mean anyone, can be a developer. All you need is strong logic, some basic problem solving skills and a savvy attitude :) With this in mind, I decided to make weekly posts about the Introduction to PHP in which I will outline the basics of PHP. Later, and if there is a demand, I will start doing bigger little projects in which I will indicate different coding practices and show some kewl effects that one can do :) So, let's do this, shall we? If you are running Windoze (sic), and you want to go along with this, you will need to get something like XAMPP or WAMP. Just Google it, not going to paste the links here. For my Linux comrades, we are almost set to go :) Your basic requirements for PHP are:

  • PHP 4/5 (I prefer that you get PHP version 5.2.10)
  • APACHE 2
  • MySQL (this is not needed, but will be usefull for later editions of the classes)
  • Some really good coffee :)
  • PHP Manual www.php.net
As a side note, if you don't understand a function/method/etc etc, just go to www.php.net/ for example www.php.net/mail gives you the details on how to use the built-in PHP mailing system Back to the tutorial :) What I will need you to do now is get you system setup and ready for PHP (this is not covered in this article, use Google to find out how to do this on your system So, let get down to coding. Create a file called phpclasses.week1.php and save it where your web server (Apache) will be able to access it. Now, place the following in the file:
 [...] 

Later! John Clarke :)

This entry was posted on Friday, March 5, 2010 at 9:45 AM . You can follow any responses to this entry through the comments feed .

0 comments

Post a Comment