1
0
mirror of https://github.com/php/web-php.git synced 2026-03-31 11:42:09 +02:00
Files
archived-web-php/index.php

518 lines
19 KiB
PHP

<?php
/*
If you're reading this, it isn't because you've found a security hole.
this is an open source website. read and learn!
*/
/* ------------------------------------------------------------------------- */
// Get the modification date of this PHP file
$timestamps[] = @getlastmod();
/*
The date of prepend.inc represents the age of ALL
included files. Please touch it if you modify any
other include file (and the modification affects
the display of the index page). The cost of stat'ing
them all is prohibitive. Also note the file path,
we aren't using the include path here.
*/
$timestamps[] = @filemtime("include/prepend.inc");
// Calendar is the only "dynamic" feature on this page
$timestamps[] = @filemtime("include/pregen-events.inc");
// The latest of these modification dates is our real Last-Modified date
$timestamp = max($timestamps);
// Note that this is not a RFC 822 date (the tz is always GMT)
$tsstring = gmdate("D, d M Y H:i:s ", $timestamp) . "GMT";
// Check if the client has the same page cached
if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"]) &&
($_SERVER["HTTP_IF_MODIFIED_SINCE"] == $tsstring)) {
header("HTTP/1.1 304 Not Modified");
exit();
}
// Inform the user agent what is our last modification date
else {
header("Last-Modified: " . $tsstring);
}
$_SERVER['BASE_PAGE'] = 'index.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-events.inc';
// This goes to the left sidebar of the front page
$SIDEBAR_DATA = '
<h3>What is PHP?</h3>
<p>
<acronym title="recursive acronym for PHP: Hypertext Preprocessor">PHP</acronym>
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 <a href="/tut.php">introductory tutorial</a>.
After that, check out the online <a href="/docs.php">manual</a>,
and the example archive sites and some of the other resources
available in the <a href="/links.php">links section</a>.
</p>
<p>
Ever wondered how popular PHP is? see the
<a href="/usage.php">Netcraft Survey</a>.
</p>
<h3><a href="/thanks.php">Thanks To</a></h3>
<ul class="simple">
<li><a href="http://www.easydns.com/?V=698570efeb62a6e2">easyDNS</a></li>
<li><a href="http://www.directi.com/">Directi</a></li>
<li><a href="http://promote.pair.com/direct.pl?php.net">pair Networks</a></li>
<li><a href="http://www.ev1servers.net/">EV1Servers</a></li>
<li><a href="http://www.servercentral.net/">Server Central</a></li>
<li><a href="http://www.hostedsolutions.com/">Hosted Solutions</a></li>
<li><a href="http://www.spry.com/">Spry VPS Hosting</a></li>
<li><a href="http://ez.no/">eZ systems</a> / <a href="http://www.hit.no/english">HiT</a></li>
</ul>
<h3>Related sites</h3>
<ul class="simple">
<li><a href="http://www.apache.org/">Apache</a></li>
<li><a href="http://www.mysql.com/">MySQL</a></li>
<li><a href="http://www.postgresql.org/">PostgreSQL</a></li>
<li><a href="http://www.zend.com/">Zend Technologies</a></li>
</ul>
<h3>Community</h3>
<ul class="simple">
<li><a href="http://www.linuxfund.org/">LinuxFund.org</a></li>
<li><a href="http://www.ostg.com/">OSTG</a></li>
</ul>
<h3>Syndication</h3>
<p>
You can grab our news as an RSS feed via a daily dump in a file
named <a href="/news.rss">news.rss</a>.
</p>';
$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 = "<div align=\"center\"><h3>This mirror sponsored by:</h3>\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 .= '<a href="' . mirror_provider_url() . '">' .
$img . "</a></div><br /><hr />\n";
// We have found an image
break;
}
}
}
// Prepend mirror image to sidebar text
$RSIDEBAR_DATA = $MIRROR_IMAGE . $RSIDEBAR_DATA;
// Run the boldEvents() function on page load
$ONLOAD = "boldEvents(); searchHistory();";
// Write out common header
commonHeader("Hypertext Preprocessor");
// DO NOT REMOVE THIS COMMENT (the RSS parser is dependant on it)
?>
<h1>Function list suggestions available</h1>
<p>
<span class="newsdate">[27-Dec-2004]</span>
Surely, some of our visitors are back at work for a few days between
holidays, and hopefully they will find our post-christmas gift useful.
The function list suggestions we started to test a year ago seemed to
be working better as some bugs were found and fixed, so it was time to
make the result available on all php.net pages.
</p>
<p>
Whenever you type something into the search file, while having the
function list search option selected, you will get a list of suggested
functions starting with the letters you typed in. You can browse the list
with the up/down keys, and you will be able to autocomplete the function
name with the spacebar.
</p>
<p>
If you are not interested in this feature, you can turn it
off for yourself on the <a href="/my.php">My PHP.net</a> page.
<a href="/search.php">More information</a> about is available on
the search page.
</p>
<hr />
<?php news_image("http://www.phpwest.com/", "phpwest.gif", "PHP West Conferences"); ?>
<h1>Speakers Announced for PHP West Conference on Web Services</h1>
<p>
<span class="newsdate">[22-Dec-2004]</span>
<a href="http://www.phpwest.com">PHP West</a> is holding a conference
on January 14th, 2005 at the Vancouver Planetarium providing a great
environment for the promotion of PHP within the Vancouver area. With the
high impact level of <a href="http://www.phpwest.com/?s=schedule">speakers
scheduled for this event</a>, you can look forward to in depth talks from
the likes of Rasmus Lerdorf, Terry Chay, John Coggeshall, Ilia Alshanetsky,
and Cal Henderson speaking on a wide array of topics focused on Web Services.
</p>
<p>
<a href="http://shop.phpwest.com/product_info.php/products_id/28">Early Bird
Specials</a> are in effect right now, tickets are only $40 until December 26th!
Due to limited capacity for this event we recommend you register soon to
reserve your seat.
</p>
<hr />
<h1>PHP 4.3.10 &amp; 5.0.3 released!</h1>
<p>
<span class="newsdate">[15-Dec-2004]</span>
The PHP Development Team would like to announce the immediate release of
<a href="/downloads.php">PHP 4.3.10</a> and <a href="/downloads.php">PHP 5.0.3</a>.
These are maintenance releases that in addition to non-critical bug fixes
address several very serious security issues. All Users of PHP are strongly
encouraged to upgrade to one of these releases as soon as possible.
</p>
<p>
For changes since PHP 4.3.9, please consult the
<a href="/ChangeLog-4.php#4.3.10">PHP 4 ChangeLog</a>.
For changes since PHP 5.0.2, please consult the
<a href="/ChangeLog-5.php#5.0.3">PHP 5 ChangeLog</a>.
</p>
<hr />
<h1>Second Bulgarian PHP Conference</h1>
<p>
<span class="newsdate">[15-Dec-2004]</span>
The second Web Technology conference in Bulgaria will be held in March 2005
at the city of Sofia. Within its framework, the <a
href="http://webtech2005.info/index.php?/archives/19-PHP-iioaaioee.html">Second
Bulgarian PHP Conference</a> and first IT Business conference will be held.
The purpose of this meeting is to discuss the new tendencies in this direction
and to popularize the internet technologies in the spheres of business,
education, and services. The range of subjects includes technologies like
PHP, Perl, business systems through web, education through the internet, and
others. The <a
href="http://webtech2005.info/index.php?/archives/9-Call-for-Papers.html">Call
For Papers</a> is open, if you would like to have a speach at this event.
</p>
<hr />
<h1>International PHP Conference 2005 - Spring Edition (Amsterdam, May 2-4)</h1>
<p>
<span class="newsdate">[15-Dec-2004]</span>
The PHP Center and the Software &amp; Support Verlag are pleased
to announce the <a href="http://www.phpconference.com/">International
PHP Conference 2005 Spring Edition</a> in Amsterdam, Netherlands.
The dates for this event will be May 2-4, 2005. The conference venue
is the RAI conference center.
</p>
<p>
Like last year the organizers would like to present an interesting and
various programme to the international PHP Community, so they are happy
to ask you to <a
href="http://www.phpconference.com/konferenzen/divers/psecom,id,191,nodeid,240.html">submit
your proposals</a> for the session programme.
</p>
<p>
The topics are General PHP, PHP &amp; Business/Integration,
PHP &amp; Databases, PHP Design, PHP Extensions, PHP &amp; XML
and PHP-GTK.
</p>
<hr />
<?php news_image("http://conf.phpquebec.org/en/conf2005/", "conference_php_quebec.gif", "Conference PHP Quebec"); ?>
<h1>Call for Speakers: PHP Qu&eacute;bec 2005</h1>
<p>
<span class="newsdate">[09-Nov-2004]</span>
The PHP Qu&eacute;bec is proud to announce the PHP Qu&eacute;bec
conference 2005, which will be held on March, 30th&amp;31th and
April 1rst 2005. We are looking for the best speakers, willing to
share their experience and skills with the educated crowd of PHP
programmers in eastern Canada and in the USA. PHP Qu&eacute;bec
2005 features 4 distinct tracks:
<ul>
<li>
Professional PHP
</li>
<li>
PHP advanced technics
</li>
<li>
MySQL
</li>
<li>
Apache and ASF projects
</li>
</ul>
For more information, read the
<a href="http://conf.phpquebec.com/en/conf2005/appel">PHP Qu&eacute;bec web site</a>.
</p>
<hr />
<?php news_image("http://nosoftwarepatents.com/", "90x40_3.jpg", "No Software Patents"); ?>
<h1>MySQL, RedHat and other partners started a new campaign against software patents</h1>
<p>
<span class="newsdate">[01-Nov-2004]</span>
In order to boost more awareness of the pending software patent issues in the
European Union&mdash;MySQL, ISP 1&amp;1, RedHat and other partners started
a new portal "<a href="http://nosoftwarepatents.com">http://nosoftwarepatents.com</a>".
The site is available in 10 different european languages and explains why
software patents are bad, and how they might affect you. In order to learn
more, or participate in events against software patents, have a look at the
very informative <a href="http://nosoftwarepatents.com">website</a>.
</p>
<hr />
<?php news_image("http://www.zend.com/php5/contest/", "zendtech_logo.gif", "Zend Technologies"); ?>
<h1>Zend's PHP 5 Coding Contest winners announced</h1>
<p>
<span class="newsdate">[25-Oct-2004]</span>
Congratulations to Qiang Xue, whose application '<a href="http://www.xisc.com/">PRADO</a>' earned high votes both from the public and from the judges' panel!
There are 49 other prizewinning applications in Zend's
<a href="http://www.zend.com/php5/contest">contest gallery</a>
- too many to list here. Some of them are ongoing projects, bringing PHP 5 a
small armoury of useful open source tools.
</p>
<p>
The top 50 applications will remain on display until the end of this year, giving
you the chance to take a leisurely look through the code and see how the new
features in PHP 5 should be used.
</p>
<hr />
<?php news_image("http://www.phpquebec.com/modules/news/article.php?storyid=55", "conference_php_quebec.gif", "PHP Quebec"); ?>
<h1>PHP before Canadian government, in Ottawa, October 19th and 20th, 2004</h1>
<p>
<span class="newsdate">[12-Oct-2004]</span>
<a href="http://www.phpquebec.com/">PHP Québec</a>, the profesional association of PHP users in Québec, will be part of the <a href="http://www.gtecweek.com/">GTEC exhibition</a>, in Ottawa, Ontario, on Tuesday October 19th and Wednesday October 20th. PHP Québec will present <a href="http://www.php.net/">PHP</a>'s features, its capabilities for e-government and its support services in Canada. Come and meet us on the floor, booth 1610C.
</p>
<hr />
<?php news_image("http://www.afup.org/forumphp/", "afup2004.jpg", "Forum PHP"); ?>
<h1>Forum PHP in Paris, November 18 &amp; 19, 2004</h1>
<p>
<span class="newsdate">[28-Sep-2004]</span>
The French <a href="http://www.afup.org/">AFUP association</a>
is proud to announce the fourth annual PHP meeting in Paris,
on November 18th and 19th, 2004. Developers and managers will
gather to meet Zeev Suraski, Rasmus Lerdorf and other prominent community experts
for two days of sessions, packed with
<a href="http://www.afup.org/article.php3?id_article=253">enterprise solutions and advanced techniques</a>
(in French).
</p>
<hr />
<?php news_image("/downloads.php#v5", "php-version5.gif", "PHP 5"); ?>
<h1>PHP 5.0.2 released!</h1>
<p>
<span class="newsdate">[23-Sep-2004]</span>
The PHP Development Team is proud to announce the immediate release of <a href="/downloads.php#v5">PHP 5.0.2</a>.
This is a maintenance release that in addition to many non-critical bug fixes, addresses a problem
with GPC input processing.
All Users of PHP 5 are encouraged to upgrade to this release as soon as possible.
</p>
<p>
For changes since PHP 5.0.1, please consult the
<a href="/ChangeLog-5.php#5.0.2">ChangeLog</a>.
</p>
<hr />
<?php news_image("/downloads.php#v4", "php-version4.gif", "PHP 4"); ?>
<h1>PHP 4.3.9 released!</h1>
<p>
<span class="newsdate">[22-Sep-2004]</span>
The PHP Development Team is proud to announce the immediate release of <a href="/downloads.php">PHP 4.3.9</a>.
This is a maintenance release that in addition to over 50 non-critical bug fixes, addresses a problem
with GPC input processing. This release also re-introduces ability to write
GIF images via the bundled GD extension.
All Users of PHP are encouraged to upgrade to this release as soon as possible.
</p>
<p>
For changes since PHP 4.3.8, please consult the
<a href="/ChangeLog-4.php#4.3.9">ChangeLog</a>.
</p>
<hr />
<?php news_image("http://mysqlcomconeurope.com", "MySQLcomcon_logo.gif", "MySQL"); ?>
<h1>MySQL ComCon Europe</h1>
<p>
<span class="newsdate">[06-Sep-2004]</span>
The MySQL ComCon Europe 2004 brings together the vigor and excitement of a
community event with the structure of MySQL mission-critical business event.
The conference will take place in Frankfurt from November 9th to 10th and will
have a day of pre-conference power workshops on the 8th. Sessions on diverse
topics such as "Performance Tuning J2EE Applications deployed on MySQL", "PHP
5 and MySQL 4.1/5.0" and a two-part introduction to MySQL Cluster will be
presented by MySQL core developers, expert trainers and MySQL community
leaders. For more details on the event, please visit
<a href="http://mysqlcomconeurope.com">http://mysqlcomconeurope.com/</a>.
</p>
<hr />
<h1>OSCOM.4 with Apache Track</h1>
<p>
<span class="newsdate">[14-Aug-2004]</span>
OSCOM, the international association for Open Source Content Management
is arranging the <a href="http://oscom.org/events/oscom4/program/">Fourth
Open Source Content Management Conference</a> from 29th September to 1st
October in Zürich. This fall, the event features Apache Software Foundation
projects, and PHP, so you have a chance to meet some prominent
figures of the PHP scene there. OSCOM.4 is a place for developers,
vendors, integrators and users to mingle and learn from each other. <a
href="http://oscom.org/events/oscom4/registration">Registration is
now open</a>!
</p>
<hr />
<h1>New Installation Instructions</h1>
<p>
<span class="newsdate">[14-Aug-2004]</span>
The latest online version of the PHP Manual contains a completely reorganized
<a href="/install">Installation and Configuration</a> part, which is now
divided into sections for individual platforms and servers to ease your first
steps with PHP. The Windows installation instructions are completely
revised, and now suggest you to set environment variables instead of moving
files. This way upgrades and configuration changes become easier.
</p>
<hr />
<?php news_image("/downloads.php#v5", "php-version5.gif", "PHP 5"); ?>
<a name="5.0.1"></a>
<h1>PHP 5.0.1 Released!</h1>
<p>
<span class="newsdate">[12-Aug-2004]</span>
The PHP Development Team would like to announce the immediate availability of <a href="/downloads.php">PHP 5.0.1</a>.
This is a maintenance release that in addition to many non-critical bug fixes also includes new UNIX and
Windows installation docs which are now auto-generated from the PHP Manual.
</p>
<p>
For changes since PHP 5.0.0, please consult the
<a href="/ChangeLog-5.php#5.0.1">ChangeLog</a>.
</p>
<hr />
<h1>PHP Tunisie Magazine</h1>
<p>
<span class="newsdate">[02-Aug-2004]</span>
<a href="http://www.phptunisie.net/">PHP Tunisie</a> has just released the
<a href="http://www.phptunisie.net/formation/downloadmagazine/2/1/">second
issue</a> of its monthly french PHP Magazine. In this issue you'll find
a large plan on PostgreSQL, Databases abstractions with PHP, your mini
template engine, an article on images generation with PHP, the migration
towards PHP5 with EasyPHP1.7... And many other articles and latests PHP news.
</p>
<p>
PHP Tunisie Magazine is edited by the Tunisian PHP Users Group.
</p>
<hr />
<?php news_image("/downloads.php#v5", "php-version5.gif", "PHP 5"); ?>
<a name="5.0.0"></a>
<h1>PHP 5.0.0 Released!</h1>
<p>
<span class="newsdate">[13-Jul-2004]</span>
The PHP team is proud to announce the <a href="/downloads.php#v5">final release of PHP 5</a>!
</p>
<p>Some of the key features of PHP 5 include:</p>
<ul>
<li>
The <a href="http://www.zend.com/php5/zend-engine2.php">Zend Engine II</a>
with a new object model and dozens of new features.
</li>
<li>
XML support has been completely redone in PHP 5, all extensions are now
focused around the excellent libxml2 library
(<a href="http://www.xmlsoft.org/">http://www.xmlsoft.org/</a>).
</li>
<li>
A new SimpleXML extension for easily accessing and manipulating XML as
PHP objects. It can also interface with the DOM extension and vice-versa.
</li>
<li>
A brand new built-in SOAP extension for interoperability with Web Services.
</li>
<li>
A new MySQL extension named MySQLi for developers using MySQL 4.1 and later.
This new extension includes an object-oriented interface in addition to
a traditional interface; as well as support for many of MySQL's new features,
such as prepared statements.
</li>
<li>
SQLite has been bundled with PHP. For more information on SQLite,
please visit <a href="http://www.sqlite.org/">their website</a>.
</li>
<li>
Streams have been greatly improved, including the ability to access
low-level socket operations on streams.
</li>
<li>And lots more...</li>
</ul>
<p>
For changes since Release Candidate 3, please consult the
<a href="/ChangeLog-5.php#5.0.0">ChangeLog</a>.
</p>
<hr />
<p class="center"><a href="/news-2004.php">News Archive</a></p>
<?php commonFooter(); ?>