downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

What is PHP?

PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.

Ever wondered how popular PHP is? see the Netcraft Survey.

Thanks To

Related sites

Community

Syndication

You can grab our news as an Atom feed.

Upcoming Events [add]

February

Conferences

20. PHP Code Contest
25. PHP UK Conference

User Group Events

22. New York
22. AzPHP
22. Malaysia PHP Meetup
22. PHP Usergroup Karlsruhe
22. PHPUG Wuerzburg
22. DCPHP Beverage Subgroup
22. Brisbane PHP User Group
22. PHP User Group Roma
22. PHPBenelux meeting - Feb '11
23. Irish PHP Users Group meeting
23. Edinburgh PHP Users Group
24. Arabic PHP Group Meeting
24. Malaysia PHP User Group Meet Up
24. Sandy PHP Group
24. Memphis PHP
26. Sacramento PHP Group
26. Miami Linux Meetup
26. PHP RIO Meetup
26. PHP User Group Hong Kong
28. Long Island PHP Users Group
28. Tampa Bay Florida PHP

March

Conferences

01. PHP Code Contest
09. ConFoo 2011
28. ZEND: Quick Start for PHP

User Group Events

01. SW Florida Linux Users Group
01. PDXPHP monthly meeting
01. Jacksonville User Group
01. Berlin PHP Usergroup Meeting
01. PHPNW: PHP North West user group
02. Meeting PHP Usergroup OWL
02. BostonPHP
02. Pittsburgh PHP Meetup Group
03. SDPHP (San Diego, CA)
03. Hannover
03. Meetup Day
03. Omaha PHP Users Group Meetup
03. PHP London
03. The Houston PHP Users Group
03. Boston PHP Meetup
03. Atlanta PHP User Group
03. Sydney PHP Group meetings
03. PHP UG Meetup Auckland
03. Seattle PHP Meetup Group
03. The Copenhagen PHP Meetup Group
03. SF PHP Meetup
03. Knoxville Python & PHP UG
03. Minnesota PHP User Group
03. OrlandoPHP User Group
03. PHP Cardiff Meetup
04. Köln/Bonn
04. Iran PHP developer's meetup
06. PHP meeting online in China
06. meeting de LAMPistas en La Paz
08. Hamburg
08. Dallas PHP/MySQL Users Group
08. Dallas PHP Users Group (DPUG)
08. Austin PHP Meetup
08. OKC PHP Meetup
08. Nashville PHP User Group
08. Oklahoma City PHP User Group
08. Buffalo PHP Meetup
08. South Florida PHP Users Group
08. South Florida PUG - Lauderdale
09. Wash DC PHP Developers Group
09. PHP User Group Stuttgart
09. South FL PUG- Miami
10. Meeting usergroup Dortmund
10. PHP Usergroup Frankfurt/Main
10. Edinburgh PHP Users Group
10. Metro Jersey PHP Usergroup
12. PHP User Group Nanaimo, BC/CA
12. PEA meeting from phpchina
12. Nagpur PHP Meetup
12. Nezahualcoyotl PHP Ramptors
13. Los Angeles PHP Developers Group
14. Queen City (Charlotte) PHP
15. PHP Brisbane Meetup Group
15. Nashville Enterprise LAMP UG
15. Chattanooga PHP Developers
16. Miami PHP User Group
16. Broward Php Usergroup
16. Chicago PHP User Group Brunch
16. Baltimore PHP User Group
17. TriPUG
17. OINK-PUG (Cincinnati, Ohio)
17. Utah PHP Users Group Meeting
17. Denver - FRPUG
19. Kansas City
19. Miami Linux Users Group
19. Twin Cities PHP
19. Los Angeles LAMPsig
22. New York
22. AzPHP
22. DCPHP Beverage Subgroup
22. Brisbane PHP User Group
24. Memphis PHP
26. Sacramento PHP Group
26. Miami Linux Meetup
26. PHP RIO Meetup
26. PHP User Group Hong Kong
28. Long Island PHP Users Group
28. Tampa Bay Florida PHP
29. Malaysia PHP Meetup
29. PHP Usergroup Karlsruhe
29. PHPUG Wuerzburg
29. PHP User Group Roma
30. Irish PHP Users Group meeting
31. Arabic PHP Group Meeting
31. Malaysia PHP User Group Meet Up
31. Sandy PHP Group

Training

01. Curso on-line de PHP-MySQL
01. PHP Class at CalTek
01. MySQL5.Проектирован�
01. Основы создания с
01. Разр-ка сложных п�
01. Curso de PHP Avançado
01. Curso PHP & AJAX
01. ZEND: PHP II Higher Structures
01. ZEND:Framework Advanced
02. PHP Training - Chennai - India
02. Zend Certification
03. Curso de PHP Avanzado en Bilbao
05. PHP & AJAX -Construindo Websites
05. Core and Advanced PHP Workshop
06. Ahmedabad PHP Group Training
06. php training
07. MySQL Spain
07. Curso PHP Madrid
07. PHP E-Learning/Germany
07. Curso on-line ActionScript / PHP
07. PHP & MySQL Training in Kassel
07. PHP & MySQL com Dreamweaver MX
07. Curso on-line de PHP
07. PHP & MYSQL-Construindo WebSites
07. PHP Training Heilbronn
07. Test Prep: PHP 5.3 Cert Dortmund
07. ZEND: PHP I Foundations on-line
07. ZEND: PHP I Foundations for IBMi
07. Linux Apache MySQL PHP in Quebec
09. UK Object Orientation Workshop
10. UK Smarty Templating Workshop
14. PHP para Expertos Curso on-line
14. Curso PHP y MySQL
14. PHP Fortgeschrittene Seminar
14. ZEND:Framework Fundamentals
14. ZEND:Test Prep: Framework Cert
14. Vertiefung PHP Datenbanken PDO
15. Cursos de PHP en Bilbao
17. Chennai PHP Training
21. PHP & MySQL Training / Gießen
21. PHP Intro Course South Africa
21. PHP Programmierung Grundlagen
21. Schulung PHP & mySQL
21. PHP Fortgeschrittene, Münster
21. ZEND: Test Prep: PHP 5.3 Cert
21. Linux Apache MySQL PHP Montreal
22. UK PHP Training
24. PHP Brasil - Training
25. PHP Training
28. Basic PHP Course
29. ZEND: On-line PHP Security
30. Разработка web - са�

PHP 5.3.5 and 5.2.17 Released!

[06-Jan-2011]

The PHP development team would like to announce the immediate availability of PHP 5.3.5 and 5.2.17.

This release resolves a critical issue, reported as PHP bug #53632 and CVE-2010-4645, where conversions from string to double might cause the PHP interpreter to hang on systems using x87 FPU registers.

The problem is known to only affect x86 32-bit PHP processes, regardless of whether the system hosting PHP is 32-bit or 64-bit. You can test whether your system is affected by running this script from the command line.

All users of PHP are strongly advised to update to these versions immediately.


PHP 5.2.16 Released!

[16-Dec-2010]

The PHP development team would like to announce the immediate availability of PHP 5.2.16. This release marks the end of support for PHP 5.2. All users of PHP 5.2 are encouraged to upgrade to PHP 5.3.

This release focuses on addressing a regression in open_basedir implementation introduced in 5.2.15 in addition to fixing a crash inside PDO::pgsql on data retrieval when the server is down. All users who have upgraded to 5.2.15 and are utilizing open_basedir are strongly encouraged to upgrade to 5.2.16 or 5.3.4.

To prepare for upgrading to PHP 5.3, now that PHP 5.2's support ended, a migration guide available on http://php.net/migration53, details the changes between PHP 5.2 and PHP 5.3.

For a full list of changes in PHP 5.2.16 see the ChangeLog at http://www.php.net/ChangeLog-5.php#5.2.16.


PHP 5.3.4 Released!

[10-Dec-2010]

The PHP development team is proud to announce the immediate release of PHP 5.3.4. This is a maintenance release in the 5.3 series, which includes a large number of bug fixes.

Security Enhancements and Fixes in PHP 5.3.4:

  • Fixed crash in zip extract method (possible CWE-170).
  • Paths with NULL in them (foo\0bar.txt) are now considered as invalid (CVE-2006-7243).
  • Fixed a possible double free in imap extension (Identified by Mateusz Kocielski). (CVE-2010-4150).
  • Fixed NULL pointer dereference in ZipArchive::getArchiveComment. (CVE-2010-3709).
  • Fixed possible flaw in open_basedir (CVE-2010-3436).
  • Fixed MOPS-2010-24, fix string validation. (CVE-2010-2950).
  • Fixed symbolic resolution support when the target is a DFS share.
  • Fixed bug #52929 (Segfault in filter_var with FILTER_VALIDATE_EMAIL with large amount of data) (CVE-2010-3710).

Key Bug Fixes in PHP 5.3.4 include:

  • Added stat support for zip stream.
  • Added follow_location (enabled by default) option for the http stream support.
  • Added a 3rd parameter to get_html_translation_table. It now takes a charset hint, like htmlentities et al.
  • Implemented FR #52348, added new constant ZEND_MULTIBYTE to detect zend multibyte at runtime.
  • Multiple improvements to the FPM SAPI.
  • Over 100 other bug fixes.

For users upgrading from PHP 5.2 there is a migration guide available here, detailing the changes between those releases and PHP 5.3.

For a full list of changes in PHP 5.3.4, see the ChangeLog. For source downloads please visit our downloads page, Windows binaries can be found on windows.php.net/download/.


PHP 5.2.15 Released!

[09-Dec-2010]

The PHP development team would like to announce the immediate availability of PHP 5.2.15. This release marks the end of support for PHP 5.2. All users of PHP 5.2 are encouraged to upgrade to PHP 5.3.

This release focuses on improving the security and stability of the PHP 5.2.x branch with a small number, of predominatly security fixes.

Security Enhancements and Fixes in PHP 5.2.15:

  • Fixed extract() to do not overwrite $GLOBALS and $this when using EXTR_OVERWRITE.
  • Fixed crash in zip extract method (possible CWE-170).
  • Fixed a possible double free in imap extension.
  • Fixed possible flaw in open_basedir (CVE-2010-3436).
  • Fixed NULL pointer dereference in ZipArchive::getArchiveComment. (CVE-2010-3709).
  • Fixed bug #52929 (Segfault in filter_var with FILTER_VALIDATE_EMAIL with large amount of data).

Key enhancements in PHP 5.2.15 include:

  • Fixed bug #47643 (array_diff() takes over 3000 times longer than php 5.2.4).
  • Fixed bug #44248 (RFC2616 transgression while HTTPS request through proxy with SoapClient object).

To prepare for upgrading to PHP 5.3, now that PHP 5.2's support ended, a migration guide available on http://php.net/migration53, details the changes between PHP 5.2 and PHP 5.3.

For a full list of changes in PHP 5.2.15 see the ChangeLog at http://www.php.net/ChangeLog-5.php#5.2.15.


PHP 5.3.3 Released!

[22-Jul-2010]

The PHP development team would like to announce the immediate availability of PHP 5.3.3. This release focuses on improving the stability and security of the PHP 5.3.x branch with over 100 bug fixes, some of which are security related. All users are encouraged to upgrade to this release.

Backwards incompatible change:

  • Methods with the same name as the last element of a namespaced class name will no longer be treated as constructor. This change doesn't affect non-namespaced classes.

    <?php
    namespace Foo;
    class Bar {
        public function Bar() {
            // treated as constructor in PHP 5.3.0-5.3.2
            // treated as regular method in PHP 5.3.3
        }
    }
    ?>

    There is no impact on migration from 5.2.x because namespaces were only introduced in PHP 5.3.

Security Enhancements and Fixes in PHP 5.3.3:

  • Rewrote var_export() to use smart_str rather than output buffering, prevents data disclosure if a fatal error occurs (CVE-2010-2531).
  • Fixed a possible resource destruction issues in shm_put_var().
  • Fixed a possible information leak because of interruption of XOR operator.
  • Fixed a possible memory corruption because of unexpected call-time pass by refernce and following memory clobbering through callbacks.
  • Fixed a possible memory corruption in ArrayObject::uasort().
  • Fixed a possible memory corruption in parse_str().
  • Fixed a possible memory corruption in pack().
  • Fixed a possible memory corruption in substr_replace().
  • Fixed a possible memory corruption in addcslashes().
  • Fixed a possible stack exhaustion inside fnmatch().
  • Fixed a possible dechunking filter buffer overflow.
  • Fixed a possible arbitrary memory access inside sqlite extension.
  • Fixed string format validation inside phar extension.
  • Fixed handling of session variable serialization on certain prefix characters.
  • Fixed a NULL pointer dereference when processing invalid XML-RPC requests (Fixes CVE-2010-0397, bug #51288).
  • Fixed SplObjectStorage unserialization problems (CVE-2010-2225).
  • Fixed possible buffer overflows in mysqlnd_list_fields, mysqlnd_change_user.
  • Fixed possible buffer overflows when handling error packets in mysqlnd.

Key enhancements in PHP 5.3.3 include:

  • Upgraded bundled sqlite to version 3.6.23.1.
  • Upgraded bundled PCRE to version 8.02.
  • Added FastCGI Process Manager (FPM) SAPI.
  • Added stream filter support to mcrypt extension.
  • Added full_special_chars filter to ext/filter.
  • Fixed a possible crash because of recursive GC invocation.
  • Fixed bug #52238 (Crash when an Exception occured in iterator_to_array).
  • Fixed bug #52041 (Memory leak when writing on uninitialized variable returned from function).
  • Fixed bug #52060 (Memory leak when passing a closure to method_exists()).
  • Fixed bug #52001 (Memory allocation problems after using variable variables).
  • Fixed bug #51723 (Content-length header is limited to 32bit integer with Apache2 on Windows).
  • Fixed bug #48930 (__COMPILER_HALT_OFFSET__ incorrect in PHP >= 5.3).

For users upgrading from PHP 5.2 there is a migration guide available on http://php.net/migration53, detailing the changes between those releases and PHP 5.3.

For a full list of changes in PHP 5.3.3, see the ChangeLog.


News Archive

 
Atom | show source | credits | stats | sitemap | contact | advertising | mirror sites