PHP: Hypertext Preprocessor
|Paradigm(s)||imperative, object-oriented, Procedural, reflective|
|Designed by||Rasmus Lerdorf|
|Developer||The PHP Group|
|Stable release||5.4.5 (July 19, 2012)|
|Typing discipline||Dynamic, weak|
|Major implementations||Zend Engine, Phalanger, Quercus, Project Zero, HipHop|
|Influenced by||C, C++, Java, Perl, Tcl|
|Usual filename extensions||.php, .phtml .php4 .php3 .php5 .phps|
|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.[dubious ] Its structure was influenced by many languages like C, Perl, Java, C++, and even Python. It is considered to be free software by mean of the Free Software Foundation.
An example Hello World program:
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Hello, World!</title> </head> <body> <?php echo "Hello, World!"; ?> </body> </html>
- 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. http://itc.conversationsnetwork.org/shows/detail3298.html#. 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."
- "Official PHP License Information". PHP.net. The PHP Group. http://www.php.net/license/. Retrieved 21 April 2011.
- http://www.w3schools.com/php/php_intro.asp Retrieved on 30 October, 2007
- "GPL-Incompatible, Free Software Licenses". Various Licenses and Comments about Them. Free Software Foundation. http://www.fsf.org/licensing/licenses/index_html#GPLIncompatibleLicenses.
- Simple English Wikipedia version page, the version of PHP that Wikipedia runs on, under the "Installed software" heading.
- "History of PHP". PHP.net. The PHP Group. http://www.php.net/manual/en/history.php.php. Retrieved 18 July 2011.
Other websites [change]