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]

October

Conferences

29. PHP Barcelona Conference 2010

User Group Events

19. PHP Brisbane Meetup Group
19. Nashville Enterprise LAMP UG
19. Chattanooga PHP Developers
20. Miami PHP User Group
20. Broward Php Usergroup
20. Chicago PHP User Group Brunch
20. Baltimore PHP User Group
21. TriPUG
21. OINK-PUG (Cincinnati, Ohio)
21. Utah PHP Users Group Meeting
21. Madison PHP Meetup Group
23. Sacramento PHP Group
25. Long Island PHP Users Group
26. New York
26. AzPHP
26. Malaysia PHP Meetup
26. PHP Usergroup Karlsruhe
26. PHPUG Wuerzburg
26. DCPHP Beverage Subgroup
26. Brisbane PHP User Group
27. Irish PHP Users Group meeting
27. Colorado Springs - FRPUG
27. Edinburgh PHP Users Group
27. PHPBenelux October 2010 meeting
28. Arabic PHP Group Meeting
28. Malaysia PHP User Group Meet Up
28. Sandy PHP Group
28. Memphis PHP
28. Burlington, VT PHP Users Group
30. Miami Linux Meetup
30. PHP RIO Meetup
30. PHP User Group Hong Kong

November

Conferences

01. Zend / PHP Conference 2010
06. Day Camp 4 Developers
09. CodeWorks Seattle
11. CodeWorks Portland
13. CodeWorks Austin
15. CodeWorks Baltimore
17. CodeWorks Orlando

User Group Events

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

Training

01. MySQL Spain
01. Curso PHP Madrid
01. PHP E-Learning/Germany
01. Curso on-line ActionScript / PHP
01. PHP & MySQL Training in Kassel
01. PHP & MySQL com Dreamweaver MX
01. Curso on-line de PHP
01. PHP & MYSQL-Construindo WebSites
01. PHP Training Heilbronn
01. PHP Programming
01. PHP Programmierung Grundlagen
01. Schulung PHP & mySQL
01. PHP Essentials
02. Curso on-line de PHP-MySQL
02. PHP Class at CalTek
02. ZEND: Framework Fundamentals
02. ZEND: Test Prep Framework Cert
02. PHP Training Philippines
03. PHP Training - Chennai - India
03. Zend Certification
03. ZEND: PHP pour les développeurs
04. Curso de PHP Avanzado en Bilbao
05. Object Oriented programming &PHP
06. PHP & AJAX -Construindo Websites
06. Core and Advanced PHP Workshop
07. Ahmedabad PHP Group Training
07. php training
08. PHP para Expertos Curso on-line
08. Curso PHP y MySQL
08. ZEND: PHP I: Foundations On-line
08. ZEND:PHP II On-line
08. ZEND:Test Prep PHP5 Cert On-line
08. ZEND: Framework Fundations
08. DC PHP Security Training
10. UK Object Orientation Workshop
11. UK Smarty Templating Workshop
15. PHP & MySQL Training / Gießen
15. PHP Fortgeschrittene Seminar
15. ZEND: Studio en ligne - françai
15. ZEND: Server en ligne - françai
16. Cursos de PHP en Bilbao
16. PHP Training - Boston, MA
18. Chennai PHP Training
18. PHP Techniques
22. PHP Intro Course South Africa
23. UK PHP Training
23. ZEND:Certification Framework
25. PHP Brasil - Training
26. PHP Training
29. Basic PHP Course
29. ZEND: Studio On-line class
29. ZEND: Server On-line Class
30. ZEND: PHP Security On-line

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.


PHP 5.2.14 Released!

[22-Jul-2010]

The PHP development team would like to announce the immediate availability of PHP 5.2.14. This release focuses on improving the stability of the PHP 5.2.x branch with over 60 bug fixes, some of which are security related.

This release marks the end of the active support for PHP 5.2. Following this release the PHP 5.2 series will receive no further active bug maintenance. Security fixes for PHP 5.2 might be published on a case by cases basis. All users of PHP 5.2 are encouraged to upgrade to PHP 5.3.

Security Enhancements and Fixes in PHP 5.2.14:

  • Rewrote var_export() to use smart_str rather than output buffering, prevents data disclosure if a fatal error occurs.
  • Fixed a possible interruption array leak in strrchr().(CVE-2010-2484)
  • Fixed a possible interruption array leak in strchr(), strstr(), substr(), chunk_split(), strtok(), addcslashes(), str_repeat(), trim().
  • Fixed a possible memory corruption in substr_replace().
  • Fixed SplObjectStorage unserialization problems (CVE-2010-2225).
  • Fixed a possible stack exaustion inside fnmatch().
  • Fixed a NULL pointer dereference when processing invalid XML-RPC requests (Fixes CVE-2010-0397, bug #51288).
  • Fixed handling of session variable serialization on certain prefix characters.
  • Fixed a possible arbitrary memory access inside sqlite extension. Reported by Mateusz Kocielski.

Key enhancements in PHP 5.2.14 include:

  • Upgraded bundled PCRE to version 8.02.
  • Updated timezone database to version 2010.5.
  • Fixed bug #52238 (Crash when an Exception occured in iterator_to_array).
  • Fixed bug #52237 (Crash when passing the reference of the property of a non-object).
  • Fixed bug #52041 (Memory leak when writing on uninitialized variable returned from function).
  • Fixed bug #51822 (Segfault with strange __destruct() for static class variables).
  • Fixed bug #51552 (debug_backtrace() causes segmentation fault and/or memory issues).
  • Fixed bug #49267 (Linking fails for iconv on MacOS: "Undefined symbols: _libiconv").

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.14 see the ChangeLog at http://www.php.net/ChangeLog-5.php#5.2.14.


TestFest 2010

[23-Jun-2010]

PHP is proud to announce TestFest 2010. TestFest is PHP's annual campaign to increase the overall code coverage of PHP through PHPT tests. During TestFest, PHP User Groups and individuals around the world organize local events where new tests are written and new contributors are introduced to PHP's testing suite.

Last year was very successful with 887 tests submitted and a code coverage increase of 2.5%. This year we hope to do better.

TestFest's own SVN repository and reporting tools are back online for this year's event. New to TestFest this year are automated test environment build tools as well as screencasts showing those build tools in action.

Please visit the TestFest 2010 wiki page for all the details on events being organized in your area, or find out how you can organize your own event.


PHP 5.3.2 Released!

[04-Mar-2010]

The PHP development team is proud to announce the immediate release of PHP 5.3.2. 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.2:

  • Improved LCG entropy. (Rasmus, Samy Kamkar)
  • Fixed safe_mode validation inside tempnam() when the directory path does not end with a /). (Martin Jansen)
  • Fixed a possible open_basedir/safe_mode bypass in the session extension identified by Grzegorz Stachowiak. (Ilia)

Key Bug Fixes in PHP 5.3.2 include:

  • Added support for SHA-256 and SHA-512 to php's crypt.
  • Added protection for $_SESSION from interrupt corruption and improved "session.save_path" check.
  • Fixed bug #51059 (crypt crashes when invalid salt are given).
  • Fixed bug #50940 Custom content-length set incorrectly in Apache sapis.
  • Fixed bug #50847 (strip_tags() removes all tags greater then 1023 bytes long).
  • Fixed bug #50723 (Bug in garbage collector causes crash).
  • Fixed bug #50661 (DOMDocument::loadXML does not allow UTF-16).
  • Fixed bug #50632 (filter_input() does not return default value if the variable does not exist).
  • Fixed bug #50540 (Crash while running ldap_next_reference test cases).
  • Fixed bug #49851 (http wrapper breaks on 1024 char long headers).
  • Over 60 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.

Further information and downloads:

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


PHP 5.2.13 Released!

[25-Feb-2010]

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

Security Enhancements and Fixes in PHP 5.2.13:

  • Fixed safe_mode validation inside tempnam() when the directory path does not end with a /). (Martin Jansen)
  • Fixed a possible open_basedir/safe_mode bypass in session extension identified by Grzegorz Stachowiak. (Ilia)
  • Improved LCG entropy. (Rasmus, Samy Kamkar)

Further details about the PHP 5.2.13 release can be found in the release announcement, and the full list of changes are available in the ChangeLog.


News Archive

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