> wiki   Explore:images videos games  


KidzSearch Safe Wikipedia for Kids.
Jump to: navigation, search
Paradigm(s) imperative, object-oriented, Procedural, reflective
Appeared in 1995; 25 years ago (1995)[1]
Designed by Rasmus Lerdorf
Developer The PHP Group
Stable release 5.6.0 / August 28, 2014; 5 years ago (2014-08-28)[2]
Preview release 5.6.0RC4 / August 14, 2014; 5 years ago (2014-08-14)[3]
Typing discipline Dynamic, weak
Major implementations Zend Engine, Phalanger, Quercus, Project Zero, HHVM
Influenced by C, C++, Java, Perl, Tcl[1]
Influenced Hack
Implementation language C
OS Cross-platform
License PHP License[4]
Usual filename extensions .php, .phtml .php4 .php3 .php5 .phps

Wikibooks logo PHP Programming at Wikibooks

PHP (PHP: Hypertext Preprocessor) is a scripting language that helps make webpages more interactive by allowing them to do more things. For example, a website programmed with PHP can have pages that are password protected, whereas a website with no programming can not do this without other complex things. Standard PHP file extensions are: .php .php3 or .phtml, although a webserver can be set up to use any extension.[5][dubious ] 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]

Wikipedia, which runs on MediaWiki, uses the PHP scripting language.[7]


PHP was first created by a man called Rasmus Lerdorf in 1995.[8] It is now developed and improved by a large team of people.


An example Hello World program:

  echo "Hello, World!";


  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."
  2. "PHP 5.6.0 released". The PHP Group. Retrieved 19 September 2014.
  3. "PHP 5.6.0RC4 is available". The PHP Group. Retrieved 19 September 2014.
  4. "Official PHP License Information". The PHP Group. Retrieved 21 April 2011.
  5. Retrieved on 30 October, 2007
  6. "GPL-Incompatible, Free Software Licenses". Various Licenses and Comments about Them. Free Software Foundation.
  7. Simple English Wikipedia version page, the version of PHP that Wikipedia runs on, under the "Installed software" heading.
  8. "History of PHP". The PHP Group. Retrieved 18 July 2011.

Other websites