|Paradigm||imperative, object-oriented, Procedural, reflective|
|Designed by||Rasmus Lerdorf|
|Developer||The PHP Group|
|Stable release||7.2.11 / October 11, 2018|
|Typing discipline||Dynamic, weak|
|Filename extensions||.php, .phtml .php4 .php3 .php5 .phps|
|Zend Engine, Phalanger, Quercus, Project Zero, HHVM|
|C, C++, Java, Perl, Tcl|
PHP (PHP: Hypertext Preprocessor) is a scripting language that helps people make web pages more interactive by allowing them to do more 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.
History[edit | change source]
Example[edit | change source]
An example Hello World program:
<?php echo "Hello, World!"; ?>
It is common to put PHP code inside a HTML document, for example:
<!DOCTYPE html> <html> <head> <title>Hello World</title> </head> <body> <?= '<p>Hello World</p>'; ?> </body> </html>
Related pages[edit | change source]
- Simple English Wikipedia version page, the version of PHP that Wikipedia runs on, under the "Installed software" heading.
References[edit | change source]
- 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.
- "PHP 7.2.11 Released". PHP.net. The PHP Group. Retrieved 16 October 2018.
- "Official PHP License Information". PHP.net. The PHP Group. Retrieved 21 April 2011.
- http://www.w3schools.com/php/php_intro.asp Retrieved on 30 October, 2007
- "Apache Module mod_mime AddHandler Directive". Retrieved 30 September 2015.
- "GPL-Incompatible, Free Software Licenses". Various licenses and comments about them. Free Software Foundation.
- "History of PHP". PHP.net. The PHP Group. Retrieved 18 July 2011.