PHP


PHP
PHP-logo.svg
ParadigmImperative, functional, object-oriented, procedural, reflective
Designed byRasmus Lerdorf
DeveloperThe PHP Development Team, Zend Technologies
First appeared1995 (1995)[1]
Stable release
8.0.2[2] Edit this on Wikidata / 4 February 2021 (4 February 2021)
Typing disciplineDynamic, weak

since version 7.0:

Gradual[3]
Implementation languageC (primarily; some components C++)
OSUnix-like, Windows, macOS
LicensePHP License (most of Zend engine under Zend Engine License)
Filename extensions.php, .phtml, .php3, .php4, .php5, .php7, .phps, .php-s, .pht, .phar
Websitewww.php.net
Major implementations
Zend Engine, HHVM, Phalanger, Quercus, Parrot
Influenced by
Perl, HTML, C, C++, Java, Tcl,[1] JavaScript, Hack[4]
Influenced
Hack, JSP, ASP

PHP is a general-purpose scripting language especially suited to web development.[5] It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994.[6] The PHP reference implementation is now produced by The PHP Group.[7] PHP originally stood for Personal Home Page,[6] but it now stands for the recursive initialism PHP: Hypertext Preprocessor.[8]

PHP code is usually processed on a web server by a PHP interpreter implemented as a module, a daemon or as a Common Gateway Interface (CGI) executable. On a web server, the result of the interpreted and executed PHP code – which may be any type of data, such as generated HTML or binary image data – would form the whole or part of an HTTP response. Various web template systems, web content management systems, and web frameworks exist which can be employed to orchestrate or facilitate the generation of that response. Additionally, PHP can be used for many programming tasks outside of the web context, such as standalone graphical applications[9] and robotic drone control.[10] Arbitrary PHP code can also be interpreted and executed via command-line interface (CLI).

The standard PHP interpreter, powered by the Zend Engine, is free software released under the PHP License. PHP has been widely ported and can be deployed on most web servers on almost every operating system and platform, free of charge.[11]

The PHP language evolved without a written formal specification or standard until 2014, with the original implementation acting as the de facto standard which other implementations aimed to follow. Since 2014, work has gone on to create a formal PHP specification.[12]

As of January 2021, 72% of PHP websites use discontinued versions of PHP, i.e. PHP 7.2 or lower, which are no longer supported by The PHP Development Team. A large additional fraction uses PHP 7.3, which is only (up to December 6, 2021) "supported for critical security issues only."[13] Over 40% of all PHP websites use version 5.6 or older,[14] that not even Debian supports (Debian 9 supported version 7.0 and 7.1).[15]

  1. ^ a b Lerdorf, Rasmus (2007-04-26). "PHP on Hormones – history of PHP presentation by Rasmus Lerdorf given at the MySQL Conference in Santa Clara, California". The Conversations Network. Retrieved 2009-12-11.
  2. ^ "PHP 8 Changelog". 4 February 2021. Retrieved 5 February 2021.
  3. ^ "PHP: Function arguments - Manual". secure.php.net.
  4. ^ Stogov, Dmitry (2015-12-04). "It's not a secret that some #PHP7 optimization ideas came from HHVM, LuaJIT and V8". Twitter.
  5. ^ "PHP: Hypertext Preprocessor". www.php.net. Retrieved 2020-02-12.
  6. ^ a b "History of PHP". php.net.
  7. ^ "History of PHP and related projects". The PHP Group. Retrieved 2008-02-25.
  8. ^ PHP Manual: Preface, www.php.net.
  9. ^ "Introduction: What can PHP do?". PHP Manual. Retrieved 2009-03-05.
  10. ^ helicopter: Port of node-ar-drone which allows user to control a Parrot AR Drone over PHP: jolicode/php-ar-drone, JoliCode, 2019-01-11, retrieved 2019-02-23
  11. ^ Cite error: The named reference foundations was invoked but never defined (see the help page).
  12. ^ Jackson, Joab (2014-07-31). "PHP gets a formal specification, at last". Computerworld. IDG.
  13. ^ "PHP: Supported Versions". www.php.net. Retrieved 2020-09-02. End of life: A release that is no longer supported. Users of this release should upgrade as soon as possible, because they may be exposed to unpatched security vulnerabilities.
  14. ^ "Usage Statistics and Market Share of PHP for Websites, December 2020". w3techs.com. Retrieved 2020-12-08.
  15. ^ Cite error: The named reference eol was invoked but never defined (see the help page).

Powered by 654 easy search