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 ' . make_link("/tut.php", "introductory tutorial") . '. After that, check out the online ' . make_link("/docs.php", "manual") . ', and the example archive sites and some of the other resources available in the ' . make_link("/links.php", "links section") . '.

Ever wondered how popular PHP is? see the ' . make_link("/usage.php", "Netcraft Survey") . '.

PHP is a project of the ' . make_link("http://www.apache.org/","Apache Software Foundation") . '.

' . make_link("/thanks.php", "Thanks To") . '

  ' . make_link("http://www.easydns.com/?V=698570efeb62a6e2", "easyDNS") . '
  ' . make_link("http://promote.pair.com/direct.pl?php.net", "pair Networks") . '
  ' . make_link("http://www.rackshack.net/", "RackShack") . '
  ' . make_link("http://www.redundant.com/", "Redundant Networks") . '
  ' . make_link("http://www.simplicato.com/?a=1007", "Simplicato") . '
  ' . make_link("http://www.rackspace.com/?supbid=php.net", "Rackspace") . '

Related sites

  ' . make_link("http://www.apache.org/", "Apache") . '
  ' . make_link("http://www.mysql.com/", "MySQL") . '
  ' . make_link("http://www.postgresql.org/", "PostgreSQL") . '
  ' . make_link("http://www.zend.com/", "Zend Technologies") . '

Community

  ' . make_link("http://www.devnetwork.net/", "PHP Developers Network") . '
  ' . make_link("http://www.linuxfund.org/", "LinuxFund.org") . '
  ' . make_link("http://www.osdn.org/", "OSDN") . '

Syndication

You can grab our news as an RSS feed via a daily dump in a file named news.rss.

Contact

Please submit website bugs in the ' . make_link('http://bugs.php.net/', 'bug system') . '.

'; // Possible mirror provider logo // image types in priority order $types = array("gif", "jpg", "png"); // Default right sidebar $RSIDEBAR_DATA = ''; // Go through all possible types while (list(,$ext) = each($types)) { // Check if file exists for this type if (file_exists("backend/mirror." . $ext)) { // Add text to rigth sidebar $RSIDEBAR_DATA .= "

This mirror sponsored by:

\n"; // Create image HTML code $img = make_image( 'mirror.' . $ext, htmlspecialchars(mirror_provider()), false, false, 'backend', 0 ); // Add size information depending on mirror type if (is_primary_site() || is_backup_primary()) { $img = resize_image($img, 125, 125); } else { $img = resize_image($img, 120, 60); } // End mirror specific part $RSIDEBAR_DATA .= make_link(mirror_provider_url(), $img) . '

' . hdelim(); // We have found an image break; } } // Read in events CSV file $fp = @fopen("backend/events.csv", "r"); // If we were able to open the file if ($fp) { // Current month number (for delimiter additions) $cm = $ccat = 0; $cats = array('unknown','User Group Events','Conferences','Training'); // Event duplication check hash $seen = array(); $RSIDEBAR_DATA .= '
Upcoming Events
[add event]
'; // While we can read the events file while (true) { // Get information event elements from file $elems = fgetcsv($fp, 8192); if($elems === false) { break; } list($d, $m, $y, $ccode, $desc, $id, , , , , , ,$cat) = $elems; // Fgetcvs() returns an array with a single null element // for a blank line, which we need to skip if ($d === NULL) { continue; } if ($ccat != (int)$cat) { $RSIDEBAR_DATA .= '
'.$cats[$cat].'
'; $ccat = $cat; } // If the month number changed if ($cm != (int) $m) { // If we are not at the begining if ($cm) { # $RSIDEBAR_DATA .= "
\n"; } // Update current month information $cm = (int) $m; // Get abbreviated month name $mon = strftime('%b', mktime(12, 0, 0, $cm, $d, $y)); // We have not seen any events in this month $seen = array(); } // There is no event with this description in this month if (!isset($seen[$desc])) { // Add event to sidebar $RSIDEBAR_DATA .= "
$mon.$d " . htmlspecialchars(stripslashes($desc)) . "
\n"; // Set seen flag $seen[$desc] = TRUE; } } // Close file (all events displayed) fclose($fp); } // Run the boldEvents() function on page load $ONLOAD = "boldEvents()"; // Write out common header commonHeader("Hypertext Preprocessor"); // Diagnostical echo, to see what the mirror thinks about itself echo "\n\n"; ?>

PHP 4.3.2 Released!

[29-May-2003] The PHP developers are proud to announce the immediate availability of PHP 4.3.2. This release contains a large number of bug fixes and is a strongly recommended update for all users of PHP. Full list of fixes can be found in the NEWS file.

Automatic Mirror Select

[23-May-2003] In our ongoing battle to fight load and keep serving you content, whenever you perform a search on www.php.net, you will be redirected onto a nearby mirror (determined using the Directi Ip-to-Country Database). You may experience a few quirks in the search until your mirrors have synced an up-to-date version of the site.

ActiveState Active Awards

[12-May-2003] ActiveState is pleased to announce the third annual Programmers' Choice and Activators' Choice Awards. The awards honor those individuals who actively contribute to open languages and display excellence in their programming efforts.

More information and voting is at: http://www.ActiveState.com/Corporate/ActiveAwards/

Country Detection

[04-May-2003] We are proud to introduce you the latest addition to our My PHP.net service. The PHP.net site and mirror sites now autodetect your country using the Directi Ip-to-Country Database. We use this information to present events in your country in bold letters on the frontpage, and to offer close mirror sites for downloads and your usual daily work.

My PHP.net

[24-Apr-2003] The PHP website and mirrors sites now have a 'My PHP.net' page, which allows you to check what language settings you have, and enables you to set one which will override all the other detected parameters.

However, normally this is not needed, as we remember the language you used last time. Be sure to have cookies turned on for PHP.net to let this feature work!

Grant Program

[06-Mar-2003] php|architect, is proud to announce the creation of the php|architect Grant Program, whose goal is to provide financial support to best-of-breed PHP-related projects.

Participation in the program is open to all open-source projects that are related to PHP (but not necessarily written in PHP). The program is accepting submissions now and will start distributing grants in June of 2003.

For more information, visit the program's website.

Set your own language preference

[01-Mar-2003] Starting from today, your browser's "Accept Language" setting is also honored on language sensitive pages on the php.net site. If you would like to get to the documentation page of echo for example, you can use the /echo shortcut on all mirror sites, if your browser is set to provide your language preference information to the server. This also makes the PHP error message links point to the documentation in your preferred language.

You can set your preferences under Edit/Preferences/Navigator/Languages in Mozilla, and under Tools/Internet Options/Languages in Internet Explorer. This will probably also enhance your web experience on sites providing translated content.

First Hungarian PHP Conference

[25-Feb-2003] The members of the Hungarian PHP community announce the first Hungarian PHP Conference which will take place in Budapest, on Saturday March 29th, sponsored by several international and local companies. The conference offers an entirely free one day activity with several presentations addressing basic and advanced topics, as well, exclusively in Hungarian. Moreover, a five kilobyte-limited PHP contest has been started to discover the most talented PHP programmers in our country. The programme includes the first session of the so-called PHP Division which will be established with the set purpose of representing the community itself and promoting their interests in any national business and official phorums.

PHP 4.3.1 released in response to CGI vulnerability

[17-Feb-2003] The PHP Group today announced the details of a serious CGI vulnerability in PHP version 4.3.0. A security update, PHP 4.3.1, fixes the issue. Everyone running affected version of PHP (as CGI) are encouraged to upgrade immediately. The new 4.3.1 release does not include any other changes, so upgrading from 4.3.0 is safe and painless.

Old News