PHP - Wikipedia, the free encyclopedia

PHP

From Wikipedia, the free encyclopedia

Jump to: navigation, search
PHP
PHP
Usual file extensions .php
Paradigm imperative, object-oriented
Appeared in 1995 (1995)
Designed by Rasmus Lerdorf
Developer The PHP Group
Latest release 5.2.6/ 01 May 2008; 217 days ago
Latest unstable release 5.2.7RC5[1], 5.3.0 Alpha 3, and 6.0-dev[2]
Typing discipline Dynamic, weak
Major implementations Roadsend PHP, Phalanger, Quercus, Project Zero
Influenced by C, Perl, Java, C++, Python
Influenced Php4delphi
OS Cross-platform
License PHP License
Website http://php.net/

PHP is a scripting language originally designed for producing dynamic web pages. It has evolved to include a command line interface capability and can be used in standalone graphical applications.[3]

While 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 de facto standard for PHP as there is no formal specification.[4] PHP is free software released under the PHP License, however it is incompatible with the GPL due to restrictions on the usage of the term PHP.[5]

PHP is a widely-used general-purpose scripting language that is especially suited for web development and can be embedded into HTML. It generally runs on a web server, taking PHP code as its input and creating web pages as output. It can be deployed on most web servers and on almost every operating system and platform free of charge.[6] PHP is installed on more than 20 million websites and 1 million web servers.[7] The most recent major release of PHP was version 5.2.6 on May 1, 2008.[8]

Contents

[edit] History

Rasmus Lerdorf, who wrote the original Common Gateway Interface binaries, and Andi Gutmans and Zeev Suraski, who rewrote the parser that formed PHP 3 Rasmus Lerdorf, who wrote the original Common Gateway Interface binaries, and Andi Gutmans and Zeev Suraski, who rewrote the parser that formed PHP 3 Rasmus Lerdorf, who wrote the original Common Gateway Interface binaries, and Andi Gutmans and Zeev Suraski, who rewrote the parser that formed PHP 3
Rasmus Lerdorf, who wrote the original Common Gateway Interface binaries, and Andi Gutmans and Zeev Suraski, who rewrote the parser that formed PHP 3

PHP originally stood for Personal Home Page.[9] It began in 1994 as a set of Common Gateway Interface binaries written in the C programming language by the Danish/Greenlandic programmer Rasmus Lerdorf. Lerdorf initially created these Personal Home Page Tools to replace a small set of Perl scripts he had been using to maintain his personal homepage. The tools were used to perform tasks such as displaying his résumé and recording how much traffic his page was receiving.[4] He combined these binaries with his Form Interpreter to create PHP/FI, which had more functionality. PHP/FI included a larger implementation for the C programming language and could communicate with databases, enabling the building of simple, dynamic web applications. Lerdorf released PHP publicly on June 8, 1995 to accelerate bug location and improve the code.[10] This release was named PHP version 2 and already had the basic functionality that PHP has today. This included Perl-like variables, form handling, and the ability to embed HTML. The syntax was similar to Perl but was more limited, simpler, and less consistent.[4]

Zeev Suraski and Andi Gutmans, two Israeli developers at the Technion IIT, rewrote the parser in 1997 and formed the base of PHP 3, changing the language's name to the recursive initialism PHP: Hypertext Preprocessor.[4] The development team officially released PHP/FI 2 in November 1997 after months of beta testing. Afterwards, public testing of PHP 3 began, and the official launch came in June 1998. Suraski and Gutmans then started a new rewrite of PHP's core, producing the Zend Engine in 1999.[11] They also founded Zend Technologies in Ramat Gan, Israel.[4]

On May 22, 2000, PHP 4, powered by the Zend Engine 1.0, was released.[4] On July 13, 2004, PHP 5 was released, powered by the new Zend Engine II.[4] PHP 5 included new features such as improved support for object-oriented programming, the PHP Data Objects extension (which defines a lightweight and consistent interface for accessing databases), and numerous performance enhancements.[12] The most recent update released by The PHP Group is for the older PHP version 4 code branch. As of August, 2008 this branch is up to version 4.4.9. PHP 4 is no longer under development nor will any security updates be released.[13][14]

In 2008, PHP 5 became the only stable version under development. Late static binding has been missing from PHP and will be added in version 5.3.[15][16] PHP 6 is under development alongside PHP 5. Major changes include the removal of register_globals,[17] magic quotes, and safe mode.[13][18]

PHP does not have complete native support for Unicode or multibyte strings;[19] unicode support will be included in PHP 6.[20] Many high profile open source projects ceased to support PHP 4 in new code as of February 5, 2008, due to the GoPHP5 initiative, provided by a consortium of PHP developers promoting the transition from PHP 4 to PHP 5.[21][22]

It runs in both 32-bit and 64-bit environments, but on Windows the only official distribution is 32-bit, requiring Windows 32-bit compatibility mode to be enabled while using IIS in a 64-bit Windows environment. There is a third-party distribution[23] available for 64-bit Windows.

[edit] Release history

Meaning
Red Old release; not supported
Yellow Old release; still supported
Green Current release
Blue Future release
Major Version Minor Version Release date Notes
1.0 1.0.0 1995-06-08 Officially called "Personal Home Page Tools (PHP Tools)". This is the first use of the name "PHP".[4]
2.0 2.0.0 1996-04-16 Considered by its creator as the "fastest and simplest tool" for creating dynamic web pages.[4]
3.0 3.0.0 1998-06-06 Development moves from one person to multiple developers. Zeev Suraski and Andi Gutmans rewrite the base for this version.[4]
4.0 4.0.0 2000-05-22 Added more advanced two-stage parse/execute tag-parsing system called the Zend engine.[24]
4.1.0 2001-12-10 Introduced 'superglobals' ($_GET, $_POST, $_SESSION, etc.)[24]
4.2.0 2002-04-22 Disabled register_globals by default. Data received over the network is not inserted directly into the global namespace anymore, closing possible security holes in applications.[24]
4.3.0 2002-12-27 Introduced the CLI, in addition to the CGI.[24]
4.4.0 2005-07-11 Added man pages for phpize and php-config scripts.[24]
4.4.8 2008-01-03 Several security enhancements and bug fixes. Was to be the end of life release for PHP 4. Security updates only until 2008-08-08, if necessary.[25]
4.4.9 2008-08-07 More security enhancements and bug fixes. The last release of the PHP 4.4 series.[26][27]
5.0 5.0.0 2004-07-13 Zend Engine II with a new object model.[8]
5.1.0 2005-11-24 Performance improvements with introduction of compiler variables in re-engineered PHP Engine.[8]
5.2.0 2006-11-02 Enabled the filter extension by default.[8]
5.2.6 2008-05-01[28] Several security enhancements and bug fixes[28]
5.3.0 First Quarter of 2009[29] Namespace support; Improved XML support through use of XMLReader and XMLWriter; SOAP support,[30] Late static bindings, Jump label (limited goto), Closures, Native PHP archives
6.0 6.0.0 No date set Unicode support; removal of ereg extension, 'register_globals', 'magic_quotes' and 'safe_mode'; Alternative PHP Cache; Removal of mime_magic and rewrite of fileinfo() for better MIME support[31]

[edit] Usage

PHP is a general-purpose scripting language that is especially suited for web development. PHP generally runs on a web server, taking PHP code as its input and creating web pages as output. It can also be used for command-line scripting and client-side GUI applications. PHP can be deployed on most web servers, many operating systems and platforms, and can be used with many relational database management systems. It is available free of charge, and the PHP Group provides the complete source code for users to build, customize and extend for their own use.[6]

PHP primarily acts as a filter,[32] taking input from a file or stream containing text and/or PHP instructions and outputs another stream of data; most commonly the output will be HTML. It can automatically detect the language of the user.[33][34] From PHP 4, the PHP parser compiles input to produce bytecode for processing by the Zend Engine, giving improved performance over its interpreter predecessor.[35]

Originally designed to create dynamic web pages, PHP's principal focus is server-side scripting,[36] and it is similar to other server-side scripting languages that provide dynamic content from a web server to a client, such as Microsoft's ASP.NET system, Sun Microsystems' JavaServer Pages,[37] and mod_perl. PHP has also attracted the development of many frameworks that provide building blocks and a design structure to promote rapid application development (RAD). Some of these include CakePHP, PRADO, Symfony and Zend Framework, offering features similar to other web application frameworks.

The LAMP architecture has become popular in the web industry as a way of deploying web applications. PHP is commonly used as the P in this bundle alongside Linux, List of open source software packages
Karnowski skarży się na Prokuraturę Krajową
Prezydent Sopotu Jacek Karnowski złożył zażalenie na działania Prokuratury Krajowej, która zażądała od magistratu wydania dokumentów dotyczących miejskich inwestycji o nazwie Centrum Haffnera.
Dla okupu porwała... własną córkę
Sądowy finał głośnego porwania w Wielkiej Brytanii. Kobieta oskarżona o porwanie własnej córki dla pieniędzy, została uznana winną zarzucanych jej czynów. Dziewięcioletniej Shannon Matthews poszukiwano prawie przez miesiąc. Wyrodna matka chciała zagarnąć 50 tysięcy funtów nagrody, ufundowanej przez media za uwolnienie dziewczynki.
Medyka: Zarzuty dla trzech uczestników blokady
Trzem uczestnikom wtorkowych starć z policją na przejściu granicznym w Medyce (Podkarpackie) postawiono w czwartek zarzut czynnej napaści na policjantów, z użyciem niebezpiecznych narzędzi. W czwartek wieczorem na przejściu było spokojnie.
Pomogą ubogim przetrwać święta
Paczki z żywnością i odzieżą dla ok. 4 tys. ubogich rodzin i zabawę choinkową z prezentami dla tysiąca dzieci zamierza przygotować białostockie Stowarzyszenie "Droga" w ramach akcji charytatywnej "Pierwsza Gwiazdka".
Speckomisja wysłuchała szefów ABW i CBA
Sejmowa komisja do spraw służb specjalnych wysłuchała szefa ABW Krzysztofa Bondaryka i szefa CBA Mariusza Kamińskiego. Kamiński przedstawił stan kontroli CBA w ABW, Bondaryk złożył oświadczenie o swoim kontrakcie z telefonią komórkową.
906 no host brak hosta wymiana linkow brak hosta