Learning something from scratch is almost always an arduous affair — you simply have no idea as to where to start, or not to start, to kick things off. I loathed learning about the idiosyncrasies of C++’s syntax when all I wanted to learn were some darn programming concepts. As I’m sure you can agree, this is a less than ideal situation.
This is where the Nettuts+ “The Best Way to Learn” series comes into the picture. This series is intended to be your blueprint, your road map, your plan of action for learning your topic of choice! You don’t have to worry about finding the best resources, sorting out the bad ones, and figuring out what to learn next. It’s all here. Just follow it, step by step.
Today, we’re going to figure out the best way to learn PHP.
Assignment #1: Disregard the Naysayers
If you’re reading this, chances are that you’ve googled a lot to decide which language to learn and how. And without a doubt, you must have run into a ton of articles about how language X is so much better than PHP and PHP is going to die through obscurity soon.
Haters gonna hate!
As the popular saying goes, haters gonna hate! PHP has been at the helm of the web as you know it and that’s for a very good reason. It’s a mature language, has excellent documentation and a massive number of learning resources along with a great variety of utilities built around it.
And let’s not forget the sheer proliferation of hosts and frameworks PHP has spawned. Like Heroku like hosting? Don’t worry, there are a number of excellent options for PHP as well!
Assignment #2: Install PHP through [X]AMP
You could just install PHP but it gets quite boring without a server and some sort of database to play around with. And as a beginner, it’s not really trivial work to get all of these installed and configure each to work with the others without issue.
This is where you grab a package such as XAMPP. These life savers typically install Apache, your web server, along with mySQL, a database system along with PHP significantly cutting down on set up time.
Bonus points if you’re the code monkey type and install everything by hand.
Assignment #3: Dive into PHP!
Before I send you off to alternate sources for PHP enlightenment, let me first refer you to our very own
series for absolute beginners from none other than your favorite editor, Jeffrey Way.*
In this series, everything from installing PHP to variables, from functions to working with SQL are covered. They maybe more than two years old but gosh darnit!, they’re still extremely relevant.
*who is also painfully humble so shoosh and stop making him blush!