PHP & Laravel Intro Course / Chapter 1 — Getting Started with PHP (lessons 1–7) / Lesson 1

What Is PHP? (Command and Built-In Server)

Time needed: about 3 min (estimate)

☆ Read later

You can try the opening of this lesson without an account.

Where does PHP run

PHP is a language that runs on a web server and produces HTML.

Where JavaScript runs inside the browser (the user's own computer), PHP runs on the server (the computer hosting the website), so all that ever reaches the browser is the HTML PHP already produced.

Both WordPress and Laravel, which this course starts using from Chapter 4, are built in PHP.

From request to response

1. The browser asks the server for a page (a request) 2. PHP runs on the server and builds HTML 3. The resulting HTML goes back to the browser (a response) → the PHP code itself is never visible to the user

Your first program

Create a free account to keep reading

With an account you can read the rest of this lesson, take the quiz, and read every free lesson in this course. Lessons you answer correctly are recorded as complete.

Report a problem with this lesson

Log in to send a report.

Keyboard shortcuts

Keys available in a lesson
KeyAction
[ or Alt + ←Go to the previous lesson
] or Alt + →Go to the next lesson
?Open this list
EscClose this list

The keys do not work while the cursor is in a code editor or an input field.