From the course: PHP for Non-Programmers

How we use PHP

- One of the biggest barriers to entry for writing code is how to start using it. Unlike Spotify or YouTube, there's no PHP app or website where we can open it and get started. PHP is a programming language, which means it tells a computer, in most cases a web server, what to do so the computer can do it. And it could be anything from print Hello, to sort a list of things, to even generate a ball in 3D space. These are called commands or instructions and we need to send them to the computer somehow. There are primarily two ways to do it. The first is using the command line, using an app like Terminal to write PHP commands and then having them printed out right in the terminal. If that sounds daunting, don't worry. It's not the common way to write or run PHP code. You will most likely write these specific files that end in dot PHP and then upload them to a server using a program. Now, both of these methods take some time to set up and we should focus on you learning the ins and outs of programming and PHP first. And luckily, there's a third option for the purposes of this course. It's called replit.com. This website allows us to write PHP directly in the browser and then run that code without having to set up anything. It allows us to focus on coding and concepts first, And don't worry, all of the code we write here will be available in the exercise files. And later on in the course, you'll learn how to use PHP in the real world.

Contents