PHP (PHP: Hypertext Preprocessor; used to stand for Personal Home Page) is a scripting language that helps people make web pages more interactive by allowing them to do things that can't be done with technologies running on the visitors computer. PHP code is run on the web server (the website's computer). It is called a preprocessor because it builds the information before sending it to the computer that visits the web page.

Quick Facts Paradigm, Designed by ...
PHP
Thumb
Paradigmimperative, object-oriented, Procedural, reflective
Designed byRasmus Lerdorf
DeveloperThe PHP Group
First appeared1995; 29 years ago (1995)[1]
Stable release7.3.6 / May 30, 2019; 5 years ago (2019-05-30)[2]
Typing disciplineDynamic, weak
Implementation languageC
OSCross-platform
LicensePHP License[3]
Filename extensions.php, .phtml, .php4, .php3, .php5, .php7, .phps, .php-s, .phar
Websitewww.php.net
Major implementations
Zend Engine, Phalanger, Quercus, Project Zero, HHVM
Influenced by
C, C++, Java, Perl, Tcl[1]
Influenced
Hack
Close

A website programmed with PHP can have pages that are password protected. A website without PHP or similar technologies can't do this, as the visitor can find a way to access the page. For example, by finding where the password is stored. Standard PHP file extensions are (but not only): .php, .php3, and .phtml, but a web server can be set up to use any extension.[4][5]

Its structure was influenced by many languages like C, Perl, Java, C++, and even Python. It is considered to be free software by the Free Software Foundation.[6]

Multiple PHP frameworks are available today, such as Laravel, Symfony, CodeIgniter, and Phalcon, which offer developers a more structured approach via pre-built components and the ability to streamline the process. Laravel is currently the only PHP framework used in the the development of more than 1,723,068 websites globally. [7]

History

PHP was first created by Rasmus Lerdorf in 1995.[8] It is now developed and improved by a large team of people. Its name at first stood for Personal Home Page, but it was later changed to PHP: Hypertext Preprocessor; using its old acronym .

Example

An example Hello World program:

<?php
echo "Hello, World!";
?>

It is common to put PHP code inside a HTML document (or any other type of data), for example:

<!DOCTYPE html>
<html>
	<head>
		<title>Hello World</title>
	</head>
	<body>
		<?php echo'<p>Hello World</p>'; ?>
	</body>
</html>

References

Other websites

Wikiwand in your browser!

Seamless Wikipedia browsing. On steroids.

Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.

Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.