PHP facts for kids
Paradigm | imperative, object-oriented, Procedural, reflective |
---|---|
Designed by | Rasmus Lerdorf |
Developer | The PHP Group |
First appeared | 1995 |
Stable release |
7.3.6 / May 30, 2019
|
Typing discipline | Dynamic, weak |
Implementation language | C |
OS | Cross-platform |
License | PHP License |
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 | |
Influenced | |
Hack | |
|
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.
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.
Contents
History
PHP was first created by Rasmus Lerdorf in 1995. 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
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>
Italic text
Images for kids
-
This is an example of PHP code for the WordPress content management system.
See also
In Spanish: PHP para niños