Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m

Next lesson playing in 5 seconds

  • Overview
  • Transcript

1.2 Prerequisites

In order to successfully follow along with this course, you will need to have PHP installed. In this course, I will be using the built-in version of PHP on my Mac. If you don’t currently have a version installed, the easiest solution is to download and install a pre-configured stack such as LAMP, WAMP, or XAMPP.

You’ll also need a decent text editor to write your PHP code. While just about any editor will do, I’ll be using Visual Studio Code, but you can feel free to use anything you like.

Related Links

1.2 Prerequisites

Before we get started digging into the world of file handling with PHP, it's going to be important for us to level set a little bit and talk a little bit about some of the assumptions and prerequisites that I'm going to require of you before we get started in this course. So the first thing is, I really hope that you have at least a basic fundamental understanding of PHP as a language. Now, you don't necessarily have to have a bunch of knowledge about this. You don't have to have written a bunch of enterprise applications, and all sorts of things like that. That's not what this is geared for. Really, what we wanna do is take a basic fundamental understanding of PHP as a language and dig into little pieces of it here and there, in this case, file handling. So if you've never done any PHP development before, then I would highly recommend you head over to tutsplus.com and check out the PHP Fundamentals course. This is going to have a lot of really great information on it that's going to cover a lot about the language and even building some basic applications. One thing that I would recommend, though, is if you have already watched this or maybe if you haven't already, you don't have to watch the whole thing if you don't want to. If you were to just watch the first and second sections, I think that would really help a lot. And pay particular attention to section 1.2 as it's gonna help you get introduced and get your development environment namely PHP, installed. And that's really the the kind of number one requirement, obviously, to be able to follow along with this course is you have to have PHP installed. Now, it doesn't really matter how you get it installed, you just need it. And in this particular course in the PHP Fundamentals course, you're gonna be using MAMP to get PHP installed. And MAMP is what's known as a stack that contains a number of different technologies and programming languages that are all installed in one shot. So you make one download, one installation, and everything is put on your machine, which is very, very, nice and makes things very easy. So I would highly recommend you do this if you don't already have PHP installed on your machine. So MAMP will contain a web server known as Apache. It's going to contain a database, MySQL, as well as language support for things like PHP, Python, Perl, and Ruby. We are obviously only gonna be using PHP, but it's kinda nice, it gets things up and running and installs very quickly. So all you have to do is head over to mamp.info and go ahead and click on the Downloads, and you go ahead and download it for Mac OS X, as well as Windows. Now, if you are using a Unix-based operating system like Mac OS X, or a Linux distribution, a lot of times, they're already gonna have PHP installed in your machine. And if that's the case, as long as you have PHP, say five or above, I'd say go with it. That's gonna be able to be enough to allow you to be able to follow along with this particular course. So you don't have to install all those other things. We're not gonna be really focusing on Apache or MySQL or anything like that. And honestly, we're only really gonna be using a built-in kind of development web server that's provided by PHP, and I'm gonna show you how to do that in one of the first lessons that are upcoming. Now, obviously, you don't have to install all of that if you don't want to. You can install PHP on its own by heading over to php.net, and clicking on the Downloads link and go ahead and download the latest and greatest, if you'd like. The latest and greatest at the time of this writing is 7.2.10. Once again, you don't have to have the latest and greatest, as long as you have, say, php5 or greater. You will be just fine because we're not using any of the latest and greatest functionality. We're using things that have been in the language for years and many versions, and that's really important. So you don't have to worry about having the latest and greatest, but you obviously can if you would like to. So once you have PHP installed, and you have a fundamental knowledge of the language, next comes being able to write some code. Now, really, you can have any sort of text editor you want. You can use Notepad, or TextEdit, or any of those types of applications. But if it's me, and if I could offer a little bit of advice, I would have you lean a little bit more towards say something more known as a code editor, at least what I like to call a code editor. Which is basically a fancy text editor that just kind of knows, quote unquote, about programming languages. Or has support for you to be able to add in support for these programming languages. Because it's going to allow you to have things like IntelliSense and code completion, which is very cool when learning about a new language. Because it allows you to start typing and the text editor or the code editor knows enough about the language to say, all right, I see that you're typing in the name of a class or a variable, and you hit period. Then all over a sudden, you see a bunch of options in there are about, these are the methods that are supported, these are the properties that are available, and things like that. And really, that's really nice when you're first learning a language or learning more about a language. Because it opens up your eyes to all of the different things that are available for you to do. Which is kinda nice, so then I could say, I didn't realize there was a method that could cast an integer to a string, or different things like that. And often times, those types of things in a code editor are very nice because I can say, I can file that away in the back of my mind, and I can say maybe I'll try to use that next time, or I didn't know there was a property that could do that or things like that. So if you're in the market, I would highly recommend you consider using a code editor because it's very good for creating applications as well as learning about languages. So the one that I'm going to be using in this particular course is Visual Studio Code. And if you're interested in following along with me, you can head over to code.visualstudio.com and you can click the green Download button on the upper right or even down on the left. It will detect what operating system you are running on or at least it will try to. And you will be able to download whatever the latest version of Visual Studio Code is for your particular platform. So once you have the tools downloaded and installed, and you have PHP up and running, and you have a basic understanding of the language, then you're ready to start working on dealing with file handling inside of PHP. So let's go ahead and get started.

Back to the top