Date First Published: 9th August 2022
Topic: Web Design & Development
Subtopic: Web Development
Article Type: Computer Terms & Definitions
Difficulty: MediumDifficulty Level: 5/10
Learn more about what PHP is in this article.
PHP is a widely used server-side scripting language that is embedded in HTML pages and used in web development. PHP is often used to create dynamic content, interact with databases, and perform calculations. It was introduced by Rasmus Lerdorf in 1994 and released to the public on 8th June 1995. By default, PHP is installed on web servers with Apache software along with MySQL. Originally, PHP stood for Personal Home Page, but it was later changed to become a recursive acronym 'PHP: Hypertext Preprocessor' in version 3 the next year. This was because of the extended tools in version 2. The 'elePHPant' is the mascot of the PHP project, designed by Vincent Pontier. Over 75% of websites use PHP on the server side. Facebook, Wikipedia, WordPress, and Tumblr all use PHP.
An example of a simple PHP script that outputs the text 'Basic PHP Script' onto a HTML page can be seen below.
This PHP script will simply return the specified text in a web browser. Because PHP is a server-side scripting language, it will not work without web server software installed and does not run on the client side.
PHP can be used to perform all sorts of server-side functions on a website, including:
HTML documents with PHP script embedded in them with the <?php and ?> tags have the file extension '.php' or '.phtml'. They do not have the file extension '.html' even though they show HTML in the source code. PHP can sometimes have the file extension '.php3', '.php4', and '.php5' to represent the PHP version used.
Because PHP is a server-side scripting language, it is run at the web server before it is delivered to the end-user. This means that the PHP source code cannot be viewed in a web browser and only the HTML output produced by the PHP scripts can be seen. The PHP code is processed by a PHP engine on the web server in order to dynamically generate HTML.
If so, it is important that you tell me as soon as possible on this page.
Network Services Network Setups Network Standards Network Hardware Network Identifiers Network Software Internet Protocols Internet Organisations Data Transmission Technologies Web Development Web Design Web Advertising Web Applications Web Organisations Web Technologies Web Services SEO Threats To Systems, Data & Information Security Mechanisms & Technologies Computer Hardware Computer Software Ethics & Sustainability Legislation & User Data Protection