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.

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.

'; $MIRROR_IMAGE = ''; // Try to find a sponsor image in case this is an official mirror if (is_official_mirror()) { // Iterate through possible mirror provider logo types in priority order $types = array("gif", "jpg", "png"); while (list(,$ext) = each($types)) { // Check if file exists for this type if (file_exists("backend/mirror." . $ext)) { // Add text to rigth sidebar $MIRROR_IMAGE = "

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 $MIRROR_IMAGE .= '' . $img . "


\n"; // We have found an image break; } } } /* {{{ Generate latest release info */ /* NOTE: You are editing the wrong file, you should be in include/version.inc * For RC: See the $PHP_x_RC variable * For STABLE: See the $PHP_x_VERSION/_DATE/_MD5 variables */ $PHP_5_STABLE = array(); $PHP_5_RC = array(); $rel = $rc = ""; $SHOW_COUNT = 3; for ($i=1; $i<=$SHOW_COUNT; ++$i) { list($PHP_5_STABLE, ) = each($RELEASES[5]); $minor = round($PHP_5_STABLE, 1); $rel .= <<< EOT
  • Current PHP $minor Stable: $PHP_5_STABLE
  • EOT; } /* Do we have any release candidates to brag about? */ $RCS = array( $PHP_5_5_RC => $PHP_5_5_RC_DATE, $PHP_5_4_RC => $PHP_5_4_RC_DATE, $PHP_5_3_RC => $PHP_5_3_RC_DATE, ); if (isset($RCS)) { foreach ((array)$RCS as $r => $d) { if ($r) { $rc .= '
  • ' . "$r ($d)
  • \n"; } } } $rel = <<< EOT

    Stable Releases

      $rel
    \n EOT; if (!empty($rc)) { $rel .= <<< EOT

    Release Candidates

      $rc
    \n EOT; } /* }}} */ // Prepend mirror image & latest releases to sidebar text $RSIDEBAR_DATA = $MIRROR_IMAGE . $rel . $RSIDEBAR_DATA; // Write out common header site_header("Hypertext Preprocessor", array( 'current' => 'home', 'onload' => 'boldEvents();', 'headtags' => array( '', '' ), 'link' => array( array( "rel" => "search", "type" => "application/opensearchdescription+xml", "href" => $MYSITE . "phpnetimprovedsearch.src", "title" => "Add PHP.net search" ), array( "rel" => "alternate", "type" => "application/atom+xml", "href" => $MYSITE . "releases.atom", "title" => "PHP Release feed" ), ), ) ); if (is_array($CONF_TEASER) && count($CONF_TEASER)) { $categories = array("conference" => "Upcoming conferences", "cfp" => "Calling for papers"); echo '
    ' . "\n"; echo " \n"; foreach($CONF_TEASER as $k => $a) { if (is_array($a) && count($a)) { echo " \n \n"; echo " \n \n"; } // if set } echo "
    ".$categories[$k].":\n"; echo '
      ' . "\n"; $count = 0; $a = preg_replace("'([A-Za-z0-9])([\s\:\-\,]*?)call for(.*?)$'i", "$1", $a); foreach($a as $url => $title) { if ($count++ >= 4) { break; } echo '
    • ' . $title. '
    • ' . "\n"; } echo "
    \n
    \n
    \n\n
    \n"; } /* Where the h*ll did all the news go? * See archives/2007.xml */ print_news($NEWS_ENTRIES, "frontpage"); ?>

    News Archive

    "/feed.atom") // Add a link to the feed at the bottom );