PHP
| Paradigm | imperative, object-oriented, Procedural, reflective |
|---|---|
| Designed by | Rasmus Lerdorf |
| Developer | The PHP Group |
| First appeared | 1995[1] |
| Stable release | 7.0.11 / September 15, 2016[2] |
| Preview release | 7.1.0 Release Candidate 2 / September 16, 2016[3] |
| Typing discipline | Dynamic, weak |
| Implementation language | C |
| OS | Cross-platform |
| License | PHP License[4] |
| Filename extensions | .php, .phtml .php4 .php3 .php5 .phps |
| Website | www |
| Major implementations | |
| Zend Engine, Phalanger, Quercus, Project Zero, HHVM | |
| Influenced by | |
| C, C++, Java, Perl, Tcl[1] | |
| Influenced | |
| Hack | |
PHP (PHP: Hypertext Preprocessor) is a scripting language that helps people make web pages more interactive, by allowing them to do more things.
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, although a web server can be set up to use any extension.[5][6]
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.[7]
Wikipedia, which runs on MediaWiki, uses the PHP scripting language.
History[change | change source]
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.
Example[change | 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[change | change source]
- Simple English Wikipedia version page, the version of PHP that Wikipedia runs on, under the "Installed software" heading.
References[change | change source]
- ↑ 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. 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."
- ↑ "PHP 7.0.11 Released". PHP.net. The PHP Group. http://php.net/archive/2016.php#id2016-09-15-1. Retrieved 29 September 2016.
- ↑ "PHP 7.1.0 Release Candidate 2 Released". PHP.net. The PHP Group. http://php.net/archive/2016.php#id2016-09-16-2. Retrieved 29 September 2016.
- ↑ "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
- ↑ "Apache Module mod_mime AddHandler Directive". http://httpd.apache.org/docs/2.4/mod/mod_mime.html#addhandler. Retrieved 30 September 2015.
- ↑ "GPL-Incompatible, Free Software Licenses". Various licenses and comments about them. Free Software Foundation. http://www.fsf.org/licensing/licenses/index_html#GPLIncompatibleLicenses.
- ↑ "History of PHP". PHP.net. The PHP Group. http://www.php.net/manual/en/history.php.php. Retrieved 18 July 2011.
Other websites[change | change source]
- Official PHP website
- PHP Tutorial for beginners