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]

June

Conferences

29. Lone Star PHP - Dallas, TX

User Group Events

19. PHP Brisbane Meetup Group
19. Nashville Enterprise LAMP UG
19. Chattanooga PHP Developers
19. PHP North-East User Group
19. NWO-PUG User Group Meeting
19. CHOPUG
19. Lake / Kenosha PHP User Group
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. Denver - FRPUG
21. B/CS PHP User Group
21. AmsterdamPHP Meetup
25. Long Island PHP Users Group
25. Tampa Bay Florida PHP
25. Winnipeg PHP
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
26. PHP User Group Roma
26. PHPUBSP
27. Irish PHP Users Group meeting
27. Guelph PHP Users Group
27. Edinburgh PHP Users Group
27. Louisville PHP User Group
28. Arabic PHP Group Meeting
28. Malaysia PHP User Group Meet Up
28. Memphis PHP
28. PHP Usergroup D/DU/KR
30. Miami Linux Meetup
30. PHP RIO Meetup
30. PHP User Group Hong Kong

July

User Group Events

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

Training

01. Ahmedabad PHP Group Training
01. php training
02. MySQL Spain
02. Curso PHP Madrid
02. PHP E-Learning/Germany
02. Curso on-line ActionScript / PHP
02. PHP & MySQL Training in Kassel
02. PHP & MySQL com Dreamweaver MX
02. Curso on-line de PHP
02. PHP & MYSQL-Construindo WebSites
02. PHP Training Heilbronn
02. Basic PHP Course
02. Le Framework Symfony
03. Curso on-line de PHP-MySQL
03. PHP Class at CalTek
03. Le Framework Zend - Paris
04. PHP Training - Chennai - India
04. Zend Certification
04. PHP: Web-sites and MySQL
05. Curso de PHP Avanzado en Bilbao
07. PHP & AJAX -Construindo Websites
07. Core and Advanced PHP Workshop
09. PHP para Expertos Curso on-line
09. Curso PHP y MySQL
09. ZEND: PHPI: Foundations On-line
09. ZEND: PHPII: Higher Structures
10. PHP Programming - Sacramento CA
11. UK Object Orientation Workshop
12. UK Smarty Templating Workshop
12. PHP109 - ORM Doctrine
16. PHP & MySQL Training / Gießen
16. ZEND: Framework: Advanced
16. ZEND: Framework: Fundamentals
16. ZEND: PHP for OO/Procedural Prog
16. ZEND: Test Prep: PHP 5.3 Cert
16. CMS Drupal pour webmasters-Paris
16. CMS Drupal pour webmasters
17. Cursos de PHP en Bilbao
17. ZEND: PHP Security On-line
19. Chennai PHP Training
19. CMS Drupal pour Web designers
23. PHP Intro Course South Africa
23. CMS Drupal pour développeurs
24. UK PHP Training
26. PHP Brasil - Training
27. PHP Training
31. PHP Programming - Edinburgh UK
Calling for papers:

PHP 5.4.4 and PHP 5.3.14 released!

[14-Jun-2012]

The PHP development team would like to announce the immediate availability of PHP 5.4.4 and PHP 5.3.14. All users of PHP are encouraged to upgrade to PHP 5.4.4 or PHP 5.3.14.

The release fixes multiple security issues: A weakness in the DES implementation of crypt and a heap overflow issue in the phar extension

PHP 5.4.4 and PHP 5.3.14 fixes over 30 bugs. Please note that the use of php://fd streams is now restricted to the CLI SAPI

For source downloads of PHP 5.4.4 and PHP 5.3.14 please visit our downloads page, Windows binaries can be found on windows.php.net/download/. The list of changes are recorded in the ChangeLog.


PHP 5.4.3 and PHP 5.3.13 Released!

[08-May-2012]

The PHP development team would like to announce the immediate availability of PHP 5.4.3 and PHP 5.3.13. All users are encouraged to upgrade to PHP 5.4.3 or PHP 5.3.13

The releases complete a fix for a vulnerability in CGI-based setups (CVE-2012-2311). Note: mod_php and php-fpm are not vulnerable to this attack.

PHP 5.4.3 fixes a buffer overflow vulnerability in the apache_request_headers() (CVE-2012-2329). The PHP 5.3 series is not vulnerable to this issue.

For source downloads of PHP 5.4.3 and PHP 5.3.13 please visit our downloads page, Windows binaries can be found on windows.php.net/download/. The list of changes are recorded in the ChangeLog.


PHP 5.3.12 and 5.4.2 and the CGI flaw (CVE-2012-1823)

[06-May-2012]

PHP 5.3.12/5.4.2 do not fix all variations of the CGI issues described in CVE-2012-1823. It has also come to our attention that some sites use an insecure cgiwrapper script to run PHP. These scripts will use $* instead of "$@" to pass parameters to php-cgi which causes a number of issues. Again, people using mod_php or php-fpm are not affected.

One way to address these CGI issues is to reject the request if the query string contains a '-' and no '='. It can be done using Apache's mod_rewrite like this:

    RewriteCond %{QUERY_STRING} ^[^=]*$
    RewriteCond %{QUERY_STRING} %2d|\- [NC]
    RewriteRule .? - [F,L]
    
Note that this will block otherwise safe requests like ?top-40 so if you have query parameters that look like that, adjust your regex accordingly.

Another set of releases are planned for Tuesday, May, 8th. These releases will fix the CGI flaw and another CGI-related issue in apache_request_header (5.4 only).

We apologize for the inconvenience created with these releases and the (lack of) communication around them.


PHP 5.3.12 and PHP 5.4.2 Released!

[03-May-2012]

There is a vulnerability in certain CGI-based setups (Apache+mod_php and nginx+php-fpm are not affected) that has gone unnoticed for at least 8 years. Section 7 of the CGI spec states:

Some systems support a method for supplying a [sic] array of strings to the CGI script. This is only used in the case of an `indexed' query. This is identified by a "GET" or "HEAD" HTTP request with a URL search string not containing any unencoded "=" characters.

So, requests that do not have a "=" in the query string are treated differently from those who do in some CGI implementations. For PHP this means that a request containing ?-s may dump the PHP source code for the page, but a request that has ?-s&=1 is fine.

A large number of sites run PHP as either an Apache module through mod_php or using php-fpm under nginx. Neither of these setups are vulnerable to this. Straight shebang-style CGI also does not appear to be vulnerable.

If you are using Apache mod_cgi to run PHP you may be vulnerable. To see if you are, just add ?-s to the end of any of your URLs. If you see your source code, you are vulnerable. If your site renders normally, you are not.

To fix this, update to PHP 5.3.12 or PHP 5.4.2.

We recognize that since CGI is a rather outdated way to run PHP, it may not be feasible to upgrade these sites to a modern version of PHP. An alternative is to configure your web server to not let these types of requests with query strings starting with a "-" and not containing a "=" through. Adding a rule like this should not break any sites. For Apache using mod_rewrite it would look like this:

         RewriteCond %{QUERY_STRING} ^(%2d|-)[^=]+$ [NC]
         RewriteRule ^(.*) $1? [L]
     

If you are writing your own rule, be sure to take the urlencoded ?%2ds version into account.

Making a bad week worse, we had a bug in our bug system that toggled the private flag of a bug report to public on a comment to the bug report causing this issue to go public before we had time to test solutions to the level we would like. Please report any issues via bugs.php.net.

For source downloads of PHP 5.3.12 and PHP 5.4.2 please visit our downloads page, Windows binaries can be found on windows.php.net/download/. A ChangeLog exists.


PHP 5.3.11 And PHP 5.4.1 Released!

[26-Apr-2012]

The PHP development team announces the immediate availability of PHP 5.3.11 and PHP 5.4.1. These releases focuses on improving the stability of the current PHP branches with over 60 bug fixes, some of which are security related.

Security Enhancements for both PHP 5.3.11 and PHP 5.4.1:

  • Fixed bug #54374 (Insufficient validating of upload name leading to corrupted $_FILES indices). (CVE-2012-1172).
  • Add open_basedir checks to readline_write_history and readline_read_history.

Security Enhancement affecting PHP 5.3.11 only:

  • Fixed bug #61043 (Regression in magic_quotes_gpc fix for CVE-2012-0831).

Key enhancements in these releases include:

  • Added debug info handler to DOM objects.
  • Fixed bug #61172 (Add Apache 2.4 support).

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

All users of PHP are strongly encouraged to upgrade to PHP 5.3.11 or PHP 5.4.1.


News Archive

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