PHP From Wikipedia, the free encyclopedia

PHP is a general-purpose server-side PHP originally designed for 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. Ultimately, 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 PHP: Hypertext applications.[2] PHP can be deployed on most Web servers Paradigm(s) imperative, object-oriented, and also as a standalone shell on almost every operating procedural, reflective system and platform free of charge.[3] A competitor to 's (ASP) server-side script Appeared in 1995[1] [4] engine and similar languages, PHP is installed on more than Designed by 20 million Web sites and 1 million Web servers.[5] Developer The PHP Group

PHP was originally created by Rasmus Lerdorf in 1995. The Stable release 5.4.3 (May 8, 2012) main implementation of PHP is now produced by The PHP Group and serves as the formal reference to the PHP Typing discipline Dynamic, weak [6] language. PHP is free released under the PHP Major Engine, , License, which is incompatible with the GNU General Public implementations Quercus, Project Zero, HipHop License (GPL) due to restrictions on the usage of the term [1] PHP.[7] Influenced by C, C++, Java, , Tcl Implementation C While PHP originally stood for "Personal Home Page", it is language now said to stand for "PHP: Hypertext Preprocessor", a recursive acronym.[8] OS Cross-platform License PHP License Usual filename ., .phtml .php4 .php3 .php5 Contents extensions . Website www.php.net 1 History 1.1 Licensing (http://www.php.net) 1.2 Release history PHP Programming at Wikibooks 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 7 Resources 8 See also 9 Notes 10 External links

History

PHP development began in 1994 when the Danish/Greenlandic/Canadian 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-page traffic.[6][9][10] Lerdorf initially announced the release of PHP on the comp.infosystems.www.authoring.cgi Usenet discussion Rasmus Lerdorf, who wrote the original Common group on June 8, 1995.[11] Gateway Interface (CGI) component together with and , who rewrote the He rewrote these scripts as Common Gateway Interface parser that formed PHP 3 (CGI) binaries in C, extending them to add the ability to work with Web forms and 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.[12] This release already had the basic functionality that PHP ha