From Wikipedia, the free encyclopedia
This article is about the scripting language. For other uses, see PHP (disambiguation). PHP
PHP: Hypertext Preprocessor
| imperative, object-oriented,procedural, reflective
| Appeared in
| 1995; 17 years ago
| Rasmus Lerdorf
| The PHP Group
| 5.4.8 (October 18, 2012; 25 days ago)
| Dynamic, weak
| Zend Engine, Phalanger,Quercus, Project Zero,HipHop
| Influenced by
| C, C++, Java, Perl, Tcl
| PHP License
Usual filename extensions
| Common extensions
Older, now uncommon extensions
.phtml, .php4 .php3, .php5, .phps
PHP Programming at Wikibooks
PHP is an open source general-purpose server-side scripting language originally designed for Web development to produce dynamic Web pages. It is one of the first developed server-side scripting languages to be embedded into an HTML source document rather than calling an external file to process data. The code is interpreted by a Web server with a PHP processor module which generates the resulting Web page. It also has evolved to include a command-line interface capability and can be used in standalone graphical applications. PHP can be deployed on most Web servers and also as a standalone shell on almost every operating system and platform free of charge. A competitor to Microsoft's Active Server Pages (ASP) server-side script engine and similar languages, PHP is installed on more than 20 million Web sites and 1 million Web servers. Software that uses PHP includes MediaWiki, Joomla, Wordpress, Concrete5, MyBB, and Drupal. PHP was originally created by Rasmus Lerdorf in 1995. The main implementation of PHP is now produced by The PHP Group and serves as the formal reference to the PHP language. PHP is free software released under the PHP License, which is incompatible with the GNU General Public License (GPL) due to restrictions on the usage of the term PHP. While PHP originally stood for Personal Home Page, it is now said to stand for PHP: Hypertext Preprocessor, a recursive acronym. Contents [hide] * 1 History * 1.1 Licensing * 1.2 Release history * 2 Usage * 3 Security * 4 Syntax * 4.1 Data types * 4.2 Functions * 4.2.1 PHP 5.2 and earlier * 4.2.2 PHP 5.3 and newer * 4.3 Objects * 4.3.1 Visibility of properties and methods * 5 Speed optimization * 6 Compilers * 7 Criticism * 8 Resources * 9 See also * 10 Notes * 11 External links
Rasmus Lerdorf, who wrote the original Common Gateway Interface (CGI) component together with Andi Gutmans andZeev Suraski, who rewrote the parser that formed PHP 3
| PHP development began in 1994 when the programmer Rasmus Lerdorf initially created a set of Perl scripts he called "Personal Home Page Tools" to maintain his personal homepage. The scripts performed tasks such as displaying his résumé and recording his web-pagetraffic. Lerdorf initially announced the release of PHP on the comp.infosystems.www.authoring.cgi Usenet discussion group on June 8, 1995. He rewrote these scripts as Common Gateway Interface (CGI) binaries in C, extending them to add the ability to work with Web formsand to communicate with databases and called this implementation "Personal Home Page/Forms Interpreter" or PHP/FI. PHP/FI could be used to build simple, dynamic Web applications. Lerdorf released PHP/FI as "Personal Home Page Tools (PHP Tools) version 1.0" publicly on June 8, 1995, to accelerate bug location and improve the code. This release already had the basic functionality that PHP has today. This included Perl-like variables,...
References: 80. ^ "PHP: Visibility – Manual". Theserverpages.com. 2005-05-19. Retrieved 2010-08-26.
87. ^ "[PHP-DEV APC in 5.4"]. Retrieved March 6, 2012.
88. ^ "PHP Internals discussion". Retrieved July 12, 2011.
89. ^ Favre, Nicolas (2010-02-16). "A review of PHP compilers and their outputs". Technow.owlient.eu. Retrieved 2010-05-20.[dead link]
Please join StudyMode to read the full document