How does it work?

How does PHP work?

Whenever anyone is learning PHP, the most common questions that first come up are: What is PHP? And how does it work?

It is precisely these questions we will look at in this lesson. It's a big help to understand such basics related to PHP before you start developing you own PHP pages. Such basic understanding will increase the speed of learning significantly.

So, let's get started!

What is PHP?

PHP was originally an acronym for Personal Home Pages, but is now a recursive acronym for PHP: Hypertext Preprocessor.

PHP was originally developed by the Danish Greenlander Rasmus Lerdorf, and was subsequently developed as open source. PHP is not a proper web standard - but an open-source technology. PHP is neither real programming language - but PHP lets you use so-called scripting in your documents.

To describe what a PHP page is, you could say that it is a file with the extension .php that contains a combination of HTML tags and scripts that run on a web server.

How does PHP work?

The best way to explain how PHP works is by comparing it with standard HTML. Imagine you type the address of an HTML document (e.g. ) in the address line of the browser. This way you request an HTML page. It could be illustrated like this:

As you can see, the server simply sends an HTML file to the client. But if you instead type - and thus request an

Source: html.net
RELATED VIDEO
How PHP Works
How PHP Works
PHP Tutorial 3 - How does a Local Server Work?
PHP Tutorial 3 - How does a Local Server Work?
How does PHP work.
How does PHP work.
RELATED FACTS
Share this Post

Related posts

How does it Work?

How does it Work?

MAY 24, 2025

What is karma? That’s a question that is often answered with explanations of good and bad actions. But karma is something…

Read More
How Does a Grandfather clock Work?

How Does a Grandfather clock Work?

MAY 24, 2025

Look for the winding points. If your grandfather clock is wound by a crank or a key, it should have one to three small holes…

Read More