← Back to Glossary

What is PHP?

by Iwan Price-Evans on Web technology • May 23, 2022

PHP stands for Hypertext Preprocessor. It is an open source scripting language used by web developers to create dynamic websites.

What Is PHP?

PHP is a programming language that allows web developers to write scripts that generate HTML pages dynamically.

PHP was originally developed as a server-side scripting language, meaning that it runs on the server before being sent to the browser. However, with the advent of PHP 5, PHP has become more popular as a client-side scripting language. Client-side scripting languages run on the browser, so the code is executed directly within the browser. This makes them faster than server-side scripting languages because there is no need to wait for the server to process the script.

JavaScript is another client-side and server-side scripting language enabling developers to create dynamic websites.

What Does PHP Do?

PHP is a general-purpose programming language designed to work well with HTML. It is often used to build dynamic websites where users can interact with each other through forms, databases, and other features. This means that when someone visits a website, the page will change based on information entered into forms on the site.

For example, a user could enter their name and email address into a form, which would then send an email to the user containing a link to download a free eBook. The user clicks on the link, and the next time they visit the site, the page will display the eBook instead of the form.

How To Install And Configure PHP On Your Website

PHP is installed as part of Apache HTTP Server. You need to install PHP separately using the command line interface (CLI). This will allow you to configure PHP settings such as memory limit, max execution time, etc.