From Simple English Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Paradigmimperative, object-oriented, Procedural, reflective
Designed byRasmus Lerdorf
DeveloperThe PHP Group
First appeared1995; 26 years ago (1995)[1]
Stable release7.3.6 / May 30, 2019; 22 months ago (2019-05-30)[2]
Typing disciplineDynamic, weak
Implementation languageC
LicensePHP License[3]
Filename extensions.php, .phtml, .php4, .php3, .php5, .php7, .phps, .php-s, .phar
Major implementations
Zend Engine, Phalanger, Quercus, Project Zero, HHVM
Influenced by
C, C++, Java, Perl, Tcl[1]

PHP (PHP: Hypertext Preprocessor) is a scripting language that helps people make web pages more interactive by allowing them to do more intelligent, complex things. PHP code is run on the web server.

A website programmed with PHP can have pages that are password protected. A website with no programming cannot do this without other complex things. Standard PHP file extensions are: .php .php3 or .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]

History[change | change source]

PHP was first created by Rasmus Lerdorf in 1995.[7] 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 in the new name.

Example[change | change source]

An example Hello World program:

echo "Hello, World!";

It is common to put PHP code inside a HTML document, for example:

<!DOCTYPE html>
		<title>Hello World</title>
		<?= '<p>Hello World</p>'; ?>

References[change | change source]

  1. 1.0 1.1 Rasmus Lerdorf began assembling C code originally written for CGI scripts into a library and accessing the library's functions, including SQL queries, through HTML-embedded commands in 1994; Lerdorf, Rasmus (2007-04-26). "PHP on Hormones - history of PHP presentation by Rasmus Lerdorf given at the MySQL Conference in Santa Clara, California" (mp3). The Conversations Network. Retrieved 2009-12-11. Every day I would change the language drastically, and it didn't take very long, so by 1995, mid-1995 or so, PHP looked like this. This isn't that far from what PHP looks like today, actually. CS1 maint: discouraged parameter (link)
  2. "PHP 7.3.6 Release Announcement". The PHP Group. Retrieved 30 May 2019. CS1 maint: discouraged parameter (link)
  3. "Official PHP License Information". The PHP Group. Retrieved 21 April 2011. CS1 maint: discouraged parameter (link)
  4. Retrieved on 30 October, 2007
  5. "Apache Module mod_mime AddHandler Directive". Retrieved 30 September 2015. CS1 maint: discouraged parameter (link)
  6. "GPL-Incompatible, Free Software Licenses". Various licenses and comments about them. Free Software Foundation. Archived from the original on 2005-07-22. Retrieved 2007-11-03.
  7. "History of PHP". The PHP Group. Retrieved 18 July 2011. CS1 maint: discouraged parameter (link)

Other websites[change | change source]