Learn PHP from Scratch: A Training Regimen

Jul 28th in PHP by Jeffrey Way

Holding the title of "number one", PHP is the most popular language among developers. Even still, many prefer different languages. Yours truly, for example, is most comfortable when working in the ASP.NET environment. However, because of the enormous success of Wordpress, more and more developers have decided to expand their horizons and learn yet another language.

PG

Author: Jeffrey Way

Hi, I'm Jeff. I'm the editor of Nettuts+, and the Site Manager of Theme Forest. I spend too much time in front of the computer and find myself telling my fiance', "We'll go in 5 minutes!" far too often. I just can't go out to dinner while I'm still producing FireBug errors...drives me crazy. During my free time, I sporadically write articles for my own personal blog. If it will keep you in the good graces of the church, follow us on Twitter.

I happen to be one of those very people. As my clients increasingly ask for Wordpress implementation, learning PHP has become a requirement. I'm not alone in this endeavor. For those in the same boat, why not take the time and learn with me?

The Mission Statement

Over the course of the next few articles - to be posted each Wednesday - it is my intention to create a "work-out regimen" for all of us. If you've been meaning to learn, but haven't gotten around to it yet, now is the time! On the flip side, for those of you who are PHP ninjas, I respectfully request that you get involved and offer advice to the rest of us. If you've benefited from the dozens of tutorials on this site, take a few moments to give back, via the comments section. This will be your one-stop resource for everything PHP. Each Wednesday, I'll post a training article, as well as a list of resources that will help to explain the concepts in the lesson further. The key here is that I'm a beginner just like everyone else, relatively speaking. We can motivate one another to learn as quickly, and efficiently as possible.

So, why would you learn from a beginner? Try not to think of it as me teaching you. Think of these articles as a community effort where we all help each other. I'll be learning from many of you in the same way that you learn from me.

What Is PHP?

PHP stands for Hypertext Preprocessor. While other languages, like Javascript, function on the client-side, your PHP code will execute on the server level. It works seamlessly with our HTML. Furthermore, your PHP can be embedded within your HTML and vice versa. The important thing to remember is that, no matter how complicated your PHP is, it will ultimately be output as simple HTML.

Why Would I Use PHP?

HTML is 100% static. By implementing PHP into your code, we can create dynamic sites that will change dependent upon specified conditions. With a community base second to none, this open-source language has proven itself over the years to be one of the best options for dynamic web applications.

Is PHP Similar To Any Other Languages?

Absolutely. I was pleasantly surprised as I began my training. If you have even a modest amount of knowledge when it comes to ASP.NET, Perl, Javascript, or C#, you'll find that you pick up the syntax quickly.

What Do I Need To Get Started?

You must have the following installed on your computer in order to begin.

  • Apache
  • MySQL
  • Web Browser
  • Text Editor
  • PHP

WAMP, MAMP

Yes, I'm sorry to say that there are a few more acronyms to learn. "WAMP" stands for "Windows-Apache-MySQL-PHP". It is an open source project that will allow us to download everything that we need to get started right away. If you're a Windows user, visit WampServer.com. On the other hand, if you're using a Mac (MAMP), you'll want to pay a visit to Mamp.info

Video Training

Lynda.com

Our first stop will be at Lynda.com. Maybe more than any other resource, Lynda.com has provided me with a wealth of knowledge that I'll forever be grateful for. For the price of a couple of pizzas, you'll gain access to a video database that details everything from ASP to SEO - and every acronym in between. When a client requests that I use a piece of software that I'm not completely comfortable with, my first stop is Lynda.com. If you're still unconvinced, why not do a google search for "Lynda.com free trial". I guarantee that you'll come up with something. Just make sure that, if you are more than satisfied with their offerings, you sign up.

After you've signed up for an account, or the free trial, go to the site and under the "Subject" drop-down-list, scroll to PHP. For this lesson, we'll be focusing on the "PHP with MySQL Essential Training" videos. Try to watch the first three chapters this week. That will get you fit and primed for next week's lesson.

The Basics

In order to alert the server that we are working with PHP, you'll need to use the following syntax when adding PHP into your HTML documents:

<?php
...code goes here
?>

We start and end each PHP declaration with "<?php" and "?>", respectively. Refer back to your code and insert the following:

<?php echo "This is PHP in action"; ?>

Notice that in this second example, we kept everything on one line. Remember, PHP is not white-space sensitive. Here, we are telling the server to "echo", or write "This is PHP in action" onto the page. Each declaration in our code must have a semicolon appended to the end. Although HTML can be forgiving if you accidentally forget a bracket, PHP unfortunately is not. If you don't use the correct syntax, you'll receive an error. In this case, when we only have a single declaration, we could technically get away with leaving the semicolon off. But, it's always important to follow best practices.

Defining Variables

We can assign values to variables quite easily. Rather than using "var" (C# and Javascript), or "dim" (VB), we can declare a variable in PHP by using the "$" symbol. For instance, let's say that I want to assign the previous string to a variable called "myVariable". I would write...

<?php $myVariable =  "This is PHP in action";
  echo $myVariable;
?>

This example will produce the exact same result as the previous two. However, in this scenario, we've assigned the string to the variable and then "echoed" the variable instead. Now what if I wanted to concatenate a variable and a string?

<?php $myVariable =  "This is PHP in action.";
  echo $myVariable . " My name is Jeffrey Way";
?>

By using the period, we can combine variables and/or strings.

Inserting Comments Into Your Code

If you're familiar with CSS and Javascript, you'll find that inserting comments in PHP is virtually the same.

<?php
  # This is a single line comment.
  // This is the most common way of commenting out your code.
  /* Here is a way to comment over multiple lines. This is the exact
     same way that you would comment in CSS */
?>

Combining HTML With Our PHP

As said previously, remember that PHP and HTML can work in combination. Simply because we're in the middle of a PHP statement does not mean that we can't embed elements such as a break or strong tag.

<?php echo "<strong>This text is bold.</strong>"; ?>

Defining Your First Function()

Creating functions in PHP is nearly identical to Javascript's implementation. The basic syntax is...

<?php
function name ($arguments){
your statement goes here;
}
?>

If we wanted to create a function that "echos" 10 plus 5, we could write...

<?php
function addNumbers (){
echo 10 + 5;
}
addNumbers();
?>

We're creating a simple function that will output "15". We call the function with "addNumbers(). In this case, we aren't using any arguments. Let's see how we can implement them in order to make our function more versatile.

<?php
function addNumbers($firstNumber, $secondNumber){
echo $firstNumber + $secondNumber;
}
addNumbers(10, 5);
?>

Now, our code is much more flexible. When we created our "addNumbers()" function, we added two arguments - $firstNumber and $secondNumber. The function will simply echo the sum of these two variables. When the function is called, we'll need to pass in our two numbers - addNumbers(10, 5). In a real-world situation, the values for these variables might be taken from a couple of textboxes.

That should be enough for this week. If these concepts are still vague, go back and read the article again. Also, be sure to check out the following resources which will help you to further grasp the syntax of PHP. Please feel free to ask questions or offer advice in the comment section. I'll be sure to work your thoughts into Part 2 - which will come out next Wednesday. If you enjoyed this article, please submit it to your favorite social networking site!

Required Resources

  • Lynda.com

    Lynda.com : PHP With MySQL Essential Training

    Website and database assimilation is a necessity for many of today's businesses, and learning to work with PHP is key to integration success. The objective of PHP with MySQL Essential Training is to teach both new and experienced web developers the comprehensive steps for building dynamic, data-driven, interactive websites.

    Visit Article

  • Developer's Zone

    PHP 101 : Down The Rabbit Hole

    To put together a cutting-edge Web site, chock full of all the latest bells and whistles, there's only one acronym you really need to know: PHP.

    Visit Article

  • PHP Buddy

    PHPBuddy.com : Your First PHP Code

    This site covers the basic PHP syntax, including variable usage.

    Visit Article

  • PHP.NET

    PHP.NET : A Simple Tutorial

    Here we would like to show the very basics of PHP in a short, simple tutorial.

    Visit Article

  • W3 Schools

    W3Schools.com : PHP Tutorial

    This site will give you as detailed an introduction to PHP as you could ever hope for. Be sure to spend at least an hour or so here.

    Visit Article


Related Posts

Check out some more great tutorials and articles that you might like

Enjoy this Post?

Your vote will help us grow this site and provide even more awesomeness

Plus Members

Source Files, Bonus Tutorials and
More for $9 a month for all TUTS+
sites in one subscription.

Join Now

User Comments

( ADD YOURS )
  1. PG

    insic July 28th

    nice for the php beginners. useful tutorial!

    ( Reply )
    1. PG

      Maet October 5th

      Nice for the php beginners!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

      ( Reply )
  2. PG

    Joefrey Mahusay July 29th

    This is very helpful article. I love to see more tutorials about Wordpress Hacks. :D

    ( Reply )
  3. PG

    Goredeep July 29th

    I have tried a few times to learn php and haven’t done that well…

    I look forward to these next few tutorials! If you can teach me, you are a genius lol

    Good work!

    ( Reply )
  4. PG

    Chandrashekar July 29th

    The PHP 101 is perhaps the best tutorial I have ever read. Anyway, nice to have a separate PHP tutorial started on this site! All the best!

    ( Reply )
  5. PG

    Shane July 29th

    Hi Jeffrey – you summed it up perfectly in your first paragraph. I too, am a C# ASP.NET developer by day, but it’s the success of wordpress, codeigniter and expression engine that have made me look more closely at PHP.

    I feel much more comfortable with an MVC framework such as codeigniter than raw PHP, but I’m enjoying using the language.

    Thanks for posting.

    ( Reply )
  6. PG

    Ben Griffiths July 29th

    Another good PHP/MySQL installer for windows/mac/linux is xampp: http://www.apachefriends.org/en/xampp.html. Once thing that wasn’t mentioned is the indentation of code. As your code gets longer, it’s a good idea to indent, like this:

    This allows you to see functions etc on the page much more easily.

    ( Reply )
  7. PG

    Ben Griffiths July 29th

    Oh. It never showed the PHP – is there a way to do this in the comments here?

    ( Reply )
  8. PG

    PHP Guy July 29th

    Combining HTML With Our PHP

    <?php echo “This text is bold.“; ?>

    DONT MERGE HTML, KEEP THE CODE OUT OF THE VIEW!

    and the ‘ is fastest than “

    ( Reply )
  9. PG

    Jbcarey July 29th

    This is EXACTLY what i need!

    ( Reply )
  10. PG

    Mike July 29th

    After 8 months of teaching myself PHP I consider my skill level now to be intermediate. Not sure if I am allowed to plug somebody elses stuff here but from all the tutorials I found and books I worked through, the one I found most useful (and still the first I go back to if I am stuck) is “PHP Solutions” by David Powers and published by Friends of Ed.

    Can’t comment on Wamp or Xamp but Mamp is an excellent piece of kit. Aside from learning PHP it also means you can run local installations of WP, Drupal and EE which is great for developement.

    Personally, I don’t see how you can properly develop a WP site without some knowledge of PHP.

    Looking forward to following the series.

    ( Reply )
  11. PG

    Andy Gongea July 29th

    Thank you guys for this good tutorial. Many designers want to learn PHP and this is a great resource.

    ( Reply )
  12. PG

    James July 29th

    Another great set of PHP tuts can be found here -> http://tizag.com/phpT/

    … nice article Jeffrey! :)

    ( Reply )
  13. PG

    Ronald July 29th

    I found the tizag tutorials extremely helpful when starting to learn the basics of php (and other stuff, like XML)a while back. Maybe an addition for your resources? http://www.tizag.com/phpT/

    Other than that, very clear article, I know the struggles of a starter can be frustrating.

    Keep up the good work

    ( Reply )
  14. PG

    Ronald July 29th

    ;-) James beat me by a few seconds, please disregard my comment re. tizag or otherwise, my apologies!

    ( Reply )
  15. PG

    Mikael Rieck July 29th

    What a wonderful idea. I’m one of the people that just haven’t taken the time to learn but with this offer I no longer have an excuse. I really look forward to learning with you.

    /Mikael

    ( Reply )
  16. PG

    San July 29th

    Being a designer & good in xhtml & CSS, I have always wanted to learn programming.

    The best bet will be to learn php, & I’m the happiest that you have started to teach it :)

    My recommendation is to give video tutorials too, you can charge for them & they will be the best bet.

    ( Reply )
  17. PG

    Elliott Cost July 29th

    Very cool! I’m super excited about this and will be following these tutorials. Keep them coming!!

    ( Reply )
  18. PG

    Exo July 29th

    Cheers thanks. Great for beginners. Just waiting for next-week. How about a bi-weekly? lol

    ( Reply )
  19. PG

    Filip Ruzicka July 29th

    Oh, thanks for this tutorial. I’ve been working with PHP & MySQL a while, but I’m still a beginner. I would appreciate more tuts like this.

    ( Reply )
  20. PG

    João Araújo July 29th

    Great tutorial, looking forward for the next one!!

    ( Reply )
  21. PG

    BroOf July 29th

    I woul love to see more tuts for PHP!

    ( Reply )
  22. PG

    James July 29th

    Great stuff, I’ve tried playing around with my wordpress theme before, now I’ll know what I’m doing. Roll on part 2!

    ( Reply )
  23. PG

    trs21219 July 29th

    http://www.gravatar.com/avatar/8ce8ff45797a11ac9d5a33a6c336404d?s=80&r=any

    I think these tutorials will be very useful for php beginners. I expect the level of the tutorials to be far superior to anything i have seen on the web before just as everything on the eden sites is. Ill try to contribute to the tutorials also.

    ( Reply )
  24. PG

    yamaniac July 29th

    great compilation!

    ( Reply )
  25. PG

    Uysys July 29th

    Great article.

    ———————————–
    http://www.uysys.com

    ( Reply )
  26. PG

    Brendan Falkowski July 29th

    Hoping this goes down the object-oriented and class-driven PHP 5 route. That’s the precipice standing before me.

    ( Reply )
  27. PG

    Simon North July 29th

    I learnt PHP via w3schools, it is by far the most helpful site and I now use it whenever I need to remember something or learn something new.

    ( Reply )
  28. PG

    Phill Pafford July 29th

    Adding Killer PHP to the list

    http://www.killerphp.com/

    ( Reply )
  29. PG

    Alex Rodebnberg July 29th

    Tizag helped me with simple guides for PHP among other things.. great site ..

    And one thing you have to learn fairly quickly is php.net .. you can search all functions there .. and basicly if you can code in another language.. thats all you need.

    Usually there is good examples of proper php code with all functions too, so you learn proper syntax .. and general good behaviour in php coding..

    I found that classic ASP can be VERY different from tutorial to tutorial .. because you could do stuff so many ways.. Thats not the case in PHP .. people generally behave good when coding.

    ( Reply )
  30. PG

    Rijalul Fikri July 29th

    Wow, you write a very wonderful tutorial. It is easily understood. Btw, I’ve never used XAMP before. For those pack, I’m using appserv –> http://www.appservnetwork.com/ and it works well for me. Looking forward to see your next tutorial.

    If only I found this tutorial when I first learn PHP, it will be very easy for me :) , ttu for the tutorial

    ( Reply )
  31. PG

    Alex July 29th

    Good intro to PHP.

    I’ll personally vouch for Lynda.com. It is a fantastic resource. We use it at work for the majority of our training programs, and since they cover so many topics, nearly every department benefits from it. One of the big things they don’t cover though, is C# and other big programming languages. They do have most of what any designer/web developer would want, though.

    ( Reply )
  32. PG

    John July 29th

    Where is the love for LAMP? .. Its the daddy of them all!

    ( Reply )
  33. PG

    Dan July 29th

    Thanks! This is great- I’m looking forward to Wednesdays now!

    ( Reply )
  34. PG

    Mr. Tunes July 29th

    hey this is a great concept. i need a training regimen. i have a lynda subscription, but i found that the book i’m reading is confusing me really quickly.

    it’s ullman’s visual quickpro guide which i think is highly rated. but all the discussion of slashes / early on is throwing me off.

    ( Reply )
  35. Not a developer myself, but I think I can feel whether a website is PHP, ASP or Coldfusion. PHP certainly seems to power many nicer-functioning websites!

    The thing I hate about WordPress is that the PHP *is* mixed in with the HTML; it’s just messy.

    ( Reply )
  36. PG

    Josh July 29th

    Thanks for this post. I can’t wait for the next few articles. This is exactly what I’ve been looking for!

    ( Reply )
  37. PG

    Jdub July 29th

    Alleluiah.

    ( Reply )
  38. PG

    Ty July 29th

    Looks like a great series!
    You forgot one other acronym xampp is a great localhost developers choice.
    http://www.apachefriends.org/en/xampp.html
    I’ve just recently setup the free IDE editor http://aptana.com/ Aptana Studio to work with a Xampplite setup, so I’m ready to rock and roll on these tuts! Bring it on…

    ( Reply )
  39. PG

    Tommy M July 29th

    Great tutorial for those who are familiar with XHTML/CSS and want to broaden their horizons to work more on the backend than the front end. Most employers who are looking for front-end developers prefer applicants that are familiar enough with PHP experience to not get scared when they’re handed a page that contains “”.

    ( Reply )
  40. PG

    Tommy M July 29th

    To the moderator: My email is tommy@thedailyapp.com, not @thedaulyapp.com

    Thanks,

    Tommy M.

    ( Reply )
  41. PG

    vic July 29th

    this is 100% pure awesomeness

    ( Reply )
  42. PG

    Eric Thayne July 29th

    I’ve been procrastinating learning this language for too long…

    ( Reply )
  43. PG

    Braden Keith July 29th

    THANK YOU THANK YOU THANK YOU. kiss kiss on each cheek.

    You do listen to what your audience wants! :D

    ( Reply )
  44. PG

    Adam Griffiths July 29th

    Just to clear one thing up, PHP actually stands for PHP: Hypertext Preprocessor, not just Hypertext Preprocessor, but I’m just being picky.

    This is a good start for anybody wanting to learn PHP.

    ( Reply )
  45. PG

    Miles Johnson July 29th

    Use XAMPP as a local server.

    Also its bad practice to echo in a function, always do a return.

    ( Reply )
  46. PG

    Jonny McGurn July 29th

    Excellent resources here, great for beginners.

    Would of done it in a different order myself, ie: covered if statements before I went onto functions but that just me..

    ( Reply )
  47. PG

    David Sparks July 29th

    Awesome!
    In April I got hired based on the web and design skills I already posses but the position was for a PHP coder which I dont know. The plan was i would receive training from the office since they have 1 coder already, they just need another however we’ve been so overly swamped my training hasn’t started yet. I have the lynda movies, I have a book, but I was needing a site I trusted and frequented already that is addressing PHP in a way i can understand being a designer/html/css coder.

    very excited to see this at its origin and to be a part of it since I’m now learning myself. It will help a lot to go along with other people learning as well.

    Cant wait!

    ( Reply )
  48. PG

    scott July 29th

    * and the ‘ is fastest than “

    This argument has raged for a long time. All the latest is that there is next to 0 difference between them with latest PHP versions.

    With that said I personally like ‘ over ” because of the requirements to not have variables inside them. It forces me to concat variables so color coding picks them out nicely.

    for example:

    echo “hello $user_name! Welcome back”;

    vs

    echo ‘hello ‘.$user_name.’! Welcome back’;

    the second will color code properly in just about any PHP aware editor where as the first won’t.

    great article.

    ( Reply )
  49. PG

    kevin July 29th

    .net sucks balls. what are you thinking?

    ( Reply )
  50. PG

    Bob Potter July 29th

    Hey thanks for this tutorial. I am really looking forward to reading this series and following along. Thanks for the additional resources at the bottom too.

    ( Reply )
  51. PG

    swany July 29th

    PHP has changed my life for the better! Client email news updates are a thing of the past!

    I hope to learn more from your articles and resources thank you!

    Swany

    ( Reply )
  52. PG

    Juarez P. A. Filho July 29th

    Wow… I’m really very excited about this idea. I already know PHP, but is so great discover new things and I’m sure that ideas like that always give me a chance to learn more and more. I learned a lot of things at Lynda.com and it’s high recommendable. Let’s learn or improve skills together guys. CYA

    ( Reply )
  53. PG

    Ryan July 29th

    Great idea. I certainly could use a training regimen, rather than the sloppy, haphazard way I gather knowledge. I love your site, and since I’m going to be here quite a bit, I’ll also use the time to properly learn PHP. Please keep up the good work. Cheers!

    ( Reply )
  54. PG

    matt_d_rat July 29th

    Excellent tutorial, very easy to follow. I am a semi-beginner at PHP, I self taught myself some basics for a university assignment, but I have always wanted to learn more…so I shall be watching this space very closely for some more tutorials – especially MySQL database interactions – that would be very handy.

    ( Reply )
  55. PG

    Pablo Matamoros July 29th

    Great timing! I am actually in the process of builidng a webapp to finally learn PHP.

    Although I understand PHP, I never developed an application from scratch. My knowledge is limited, I can only modify Wordpres, Jommla, …, templates.

    I was going to use the CakePHP framework. Has anybody used it?

    W3Schools.com rocks!

    I recommend the new Netbeans IDE for PHP. It is free!: http://www.netbeans.org/

    ( Reply )
  56. PG

    Darren July 29th

    As someone mentioned above, there are differences between using single and double quotation marks for string variables.

    If you use double quotation marks, PHP will do extra parsing looking for stuff like variable names (eg. $foo) and escape sequences (eg. “\n”). If you use single quotation marks, PHP will treat the string exactly as you typed it. Finally, you can use the heredoc curly brace syntax in combination with double quotation marks to explicitly include a variable in your string.

    What I choose to do is:

    1. If I’m not using any variable names or escape sequences, I always use single quotation marks for strings.
    2. If I am using either of the above, I always use double quotation marks with curly braces. It’s not always necessary to use the braces but it makes it very clear in your code which parts of the string are variables names and prevents errors when you’re inserting an aobject variable or running a variable right up against a string fragment which is not part of the variable name.

    For example (this bit might get mangled in the comments):

    $foo = ‘hell’;
    $obj = new stdClass();
    $obj->prop = ‘hell’;
    echo “$fooo”; // error – unknown variable
    echo “{$foo}o” // prints “hello”
    echo “$obj->propo” // error – unknown variable
    echo “{$obj->prop}o” // prints “hello”

    Other people use different approaches but I find this way to be consistent and fool-proof.

    Some more info here:

    http://www.unix.com.ua/orelly/webprog/php/ch04_01.htm

    Cheers,
    Darren.

    ( Reply )
  57. PG

    Amanda H July 29th

    Just what I’ve been looking for, thanks so much – for this and all your tutorials!

    ( Reply )
  58. PG

    dronix July 29th

    For those that still don’t know about it, http://phpvideotutorials.com has free php tutorials that everyone can benefit from.

    ( Reply )
  59. PG

    insic July 29th

    a lot of people love nettuts. this site rocks! lol

    ( Reply )
  60. PG

    Nubenegra July 30th

    Thanks Great tutorial

    ( Reply )
  61. PG

    tripdragon July 30th

    ruby on rails

    ( Reply )
  62. PG

    CasJam July 30th

    EXCELLENT TUTORIAL!

    I’m a front-end designer / developer, but I’m constantly running into situations where I either need to hire out a PHP programmer, or spend hours searching the web for a pre-made solution.

    My current dilemma is I need to create a very, VERY, simple CMS. One form with authentication, that will write and publish data to an HTML table. I haven’t found a solution that is simple enough for both me to set up, and my non-computer savvy client to use. What I need is so simple that I’d like to be able to put it together myself…

    ( Reply )
  63. PG

    Jeffrey Way July 30th

    Thanks everybody. I think this series will be a bi-weekly one. I need time to learn enough for level two! Thanks for all of the advice.

    ( Reply )
  64. PG

    Mark Abucayon July 30th

    wow, I like to see this one… very useful for PHP beginners.

    ( Reply )
  65. PG

    Rafyta July 30th

    So cool that you will be posting one of these a week…
    Just wanted to share with everyone that PHP originally stood for “Personal Home Pages” and then became recursive: “PHP Hypertext Preprocessor”.

    Keep up the coolness…

    ( Reply )
  66. PG

    Zach LeBar July 30th

    THANK YOU! I’m beginning to learn PHP, and have been searching for this exact stuff. Can’t wait for Wednesdays now. :)

    ( Reply )
  67. PG

    Wayne July 30th

    Very cool. I’ve hacked away at some PHP code maintenance, just enough to be dangerous. Looking forward to Wed’s!

    ( Reply )
  68. PG

    Stephen Coley July 30th

    I agree with Mr. Griffiths, XAMPP is a really good solution to the hassle of dling apache, mysql, and php. It has never failed me.

    ( Reply )
  69. PG

    Owz July 31st

    I’m just starting out on PHP so this is great too be able to learn along with others..

    Nettuts/psdtuts/vectortuts is by far the best tutorial sites I’ve come across on the web.. keep it up guys…

    ( Reply )
  70. PG

    Ibrahim Al-Rajhi July 31st

    A great book for learning PHP and MySQL is PHP 6 and MySQL 5 visual quickstart…you can find it on Amazon, I find it easier to learn through a book since everything I need is in one place. (also you only need to pay once instead of a monthly fee for lynda.com)

    ( Reply )
  71. PG

    paresh August 1st

    great for php begginers, thanks for sharing

    ( Reply )
  72. PG

    ericb August 1st

    Thanks for sharing this noob friendly tutorial! Right timing too since my PHP class will star this Fall. Post some more as you progress on PHP!

    ( Reply )
  73. PG

    Lamin Barrow August 2nd

    I have considered learning PHP a year ago but i lost interest when i started to build web apps in ASP.net but it seems you have just reignited my interest in the language with this article. Thanks very much. :)

    ( Reply )
  74. PG

    Charlotte Spencer August 6th

    Tizag.com Offer a really good tutorial also.

    ( Reply )
  75. PG

    Charlotte Spencer August 6th

    My bad, it’s been mentioned :D
    I will be following these tutorials as I’m starting PHP right this second.

    ( Reply )
  76. PG

    Taylor Satula August 6th

    Really helpful im not a php guru so this is great

    ( Reply )
  77. PG

    Mike August 7th

    eagerly anticipating lesson 2, is it coming soon?

    ( Reply )
  78. PG

    Nathan August 11th

    If you could include links to the various lessons as you go along, that would be awesome. I’ve learned a lot from this tut and this site in general, thanks a lot.

    -Nathan

    ( Reply )
  79. PG

    Mike T. August 14th

    When can we expect part 2?

    ( Reply )
  80. PG

    unslb August 19th

    Thanx for this very interesting and helpfull

    ( Reply )
  81. PG

    John Deszell August 20th

    Great starter!

    I read through it pretty briefly and will have to go back through it and look into it more. I’ve been wanting to learn PHP as right now I’m a guru of XHTML/CSS but have no programming experience. The big push lately is that I recently moved and trying to find another job and most of them require you to know either PHP or ASP. My old job I just did front end work and we had programmers that just programmed and didn’t touch the HTML/CSS. I rather learn PHP as I’ve been tinkering heavily with Wordpress and want to move on learning Drupal as well.

    I look forward to learning with you and the next installment.

    ( Reply )
  82. PG

    Josh August 28th

    Whatever happened to the weekly lessons? :-(

    ( Reply )
  83. PG

    Mike T. August 28th

    I’m with Josh, I was really pumped up for this and there hasn’t been anything in like a month.

    ( Reply )
  84. PG

    Charlotte Spencer August 31st

    Im also waiting for the next lesson… :(

    ( Reply )
  85. PG

    Ewan September 7th

    Me too. Such a great idea as well.

    Jeffrey?

    ( Reply )
  86. PG

    Jeffrey Way September 7th

    @Everyone – Check back on Tuesday for Part 2.

    P.S. I apologize for the delay. Basically what happened was, days after writing this article, I became the editor of NETTUTS. I suddenly was put in a position where I didn’t have time to write Part 2 the way I wanted. However, I’ve gotten someone to take over the series. Tomorrow, we’ll have Part 2 of the Ruby series. Then Tuesday, Part 2 of this series! Wahoo.

    ( Reply )
  87. PG

    Ewan September 8th

    Fantastic! Can’t wait. I have a few books on PHP, but the problem with books are I can pick them up and down as I please. And they tend to be down more often than up. With these tutorials I can do X amount of learning per week, almost like following a college course. Fantastic.

    How many do you intend to do, out of interest?

    ( Reply )
  88. PG

    Sam Halta September 9th

    THANKS FOR THE UPDATE!!! I can’t wait… been waiting for an update to why it wasn’t continued! Good Luck as an editor!

    ( Reply )
  89. PG

    poring September 14th

    Hi!

    I have a stupid question regarding php. Do I need an internet connection? Because I prefer to work at home (where I have no internet access). Also for WAMP if I use that tool would it also require me to have internet access? Sorry for posting noob question. But I’d really appreciate your answers

    ( Reply )
  90. PG

    Jeffrey Way September 14th

    @poring – No. You don’t.

    ( Reply )
  91. PG

    Estudigital September 15th

    Excellent!! I want more… :p

    ( Reply )
  92. PG

    waqas September 16th

    Thanks, I am new in php world and this help me most to understand php language grammar .. Thanks

    ( Reply )
  93. PG

    waqas October 1st

    Thanks, php world and this help me mo
    I am new inst to understand php language grammar .. Thanks

    ( Reply )
  94. PG

    honour chick November 3rd

    thanks alot… this help alot because of the easy explanations.

    ( Reply )
  95. PG

    Bnago December 26th

    You have forgotten XAMPP :) – It is a great tool, I have used it under XP, Vista and Ubuntu. Now I have switched to Ubuntu completely so I only use it there. It is a great way to develop WordPress theme locally using XAMPP.

    ( Reply )
  96. PG

    Brian January 22nd

    It is worth adding PHPVIDEOTUTORIALS.com to that list.

    ( Reply )
  97. PG

    john February 3rd

  98. PG

    Chris May 9th

    This is a very good tutorial for beginners, good job mate.

    Cheers…

    ( Reply )
  99. PG

    Mutombo July 6th

    Yea! I believe that its all good! Believe i want to share in your pride and joy, but please help me. i have a project in PHP, at least till i get to learn it, and the problem is that i cant get any program to run. not even the “Hello world!” thing.
    I already have the wamp server thing, just installed it, dont know what to do with it. But i still get no results with my pages. How do i configure my Dreamweaver or any other web develpoer ide with the php environment.
    Please Please Please help me. Ya! I’m Desperate deal with it. thank you!

    ( Reply )
  100. PG

    jbug August 2nd

    Jeff, great tut.. and killer resources!

    However, I think you give WAY too much credit to WP.. Do you honesty think it was the popularity of WP that spawned the mass interest in PHP ? Or could it have been the multitude of Open Source apps all built using this awesome language? I know everyone at Envato loves their WP, and for good reason.. but although it may be a focus of development for PHP, it’s success is not the ‘reason’ for more developers flocking to this language.

    ( Reply )
  101. PG

    sHAFIQ-uR-rEHMAN August 24th

    Wow, what Great Tutorial, its really good for those who just start learning PHP! this tutorial will almost lear all the Basic concept about Variables+ FUCNTIONS….

    ( Reply )
  102. PG

    vamsi October 2nd

    very basic :P
    but highly useful for beginers :)

    ( Reply )
  1. Arrow
    Gravatar

    Your Name
    October 2nd