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

419 lines
15 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>
<p>
PHP is a project of the
<a href="http://www.apache.org/">Apache Software Foundation</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.redundant.com/">Redundant Networks</a></li>
<li><a href="http://www.simplicato.com/?a=1007">Simplicato</a></li>
<li><a href="http://www.rackspace.com/?supbid=php.net">Rackspace</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.osdn.org/">OSDN</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>
<h3>Contact</h3>
<p>
Please submit website bugs in the
<a href="http://bugs.php.net/">bug system</a>.
</p>';
$MIRROR_IMAGE = '';
// 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>Call for Papers : PHP Conference 2004 - Spring Edition</h1>
<p>
<span class="newsdate">[10-Dec-2003]</span>
The organizers of the International PHP Conference are proud
to announce the second edition of the Intl PHP Conference 2004
Spring Edition in Amsterdam. Again, we'll meet at the RAI Conference
Center for three days: one day with hands-on power workshops and
two days main conference. The conference will happen from May, 3rd
to May, 5th 2004.
</p>
<p>
The <a href="http://www.phpconference.com/">call for papers</a> has
been announced now. Just submit your sessions at <a
href="http://www.phpconference.de/kt/input/">http://www.phpconference.de/kt/input/</a> -
they'll be reviewed by the Chair Board which consists this year of:
Bj&ouml;rn Schotte (chair), Zak Greant, Derick Rethans, George
Schlossnagle, Sascha Schumann. The full conference website will
be online soon.
</p>
<hr />
<?php news_image("http://webdevmagazine.co.uk/conf/index_n.php", "bulgaria_2004.gif", "First Bulgarian PHP conference"); ?>
<h1>First Bulgarian and Second Hungarian PHP Conference</h1>
<p>
<span class="newsdate">[01-Dec-2003]</span>
The <a href="http://webdevmagazine.co.uk/conf/index_n.php">First Bulgarian
PHP conference</a> will be held within the framework of the 2004 Web Technology
Conference in Sofia in March. The goal of the meeting is to discuss the trends and
to popularize PHP among the business, education and services sectors. The organizers
welcome proposals for sessions and company presentations.
</p>
<?php news_image("http://www.phpconf.hu/", "hu_conf.gif", "Second Hungarian PHP conference"); ?>
<p>
Also coming in March 2004 is the <a href="http://www.phpconf.hu/">Second Hungarian
PHP Conference</a> building on last year's successful event. The Call For Papers is
open for the conference, speakers are welcome to hold sessions and workshops ranging
from PHP internals to web standard compliance. The event is exclusively in Hungarian.
</p>
<hr />
<?php news_image("http://conf.phpquebec.org/index.html", "conference_php_quebec.gif", "Conference PHP Quebec"); ?>
<h1>Call for Speakers : PHP Qu&eacute;bec 2004</h1>
<p>
<span class="newsdate">[11-Nov-2003]</span>
The PHP Qu&eacute;bec is pleased to announce the PHP Qu&eacute;bec
conference 2004, which will be held on March, 25th&amp;26th 2004.
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
2004 features 3 distinct tracks:
<ul>
<li>
Professional PHP, dealing with php usage in professional
environment and unusual businesses.
</li>
<li>
Technical PHP, covering indeep details of PHP technics.
</li>
<li>
Free software, about any free software, closely related to PHP.
</li>
</ul>
<a href="http://conf.phpquebec.com/">Sessions</a> will be held in
<a href="http://conf.phpquebec.com/main.php/fr/accueil/main">French</a> or
<a href="http://conf.phpquebec.com/main.php/en/accueil/main">English</a>.
For more information, read the <a
href="http://conf.phpquebec.org/main.php/en/conf2004/conferencier">PHP Qu&eacute;bec</a>.
</p>
<hr />
<h1>New function list auto completion</h1>
<p>
<span class="newsdate">[04-Nov-2003]</span>
You can probably name at least one IDE providing support for PHP function name
code completion. PHP.net is just <em>beta testing</em> the same feature
<a href="/search.php">on the search page</a>. Try selecting the 'function
list' lookup option and start typing in a function name in the search field.
You can autocomplete the name with the space key and navigate in the dropdown
with the up and down cursor keys. We welcome feedback on this feature at
<a href="/copyright.php#contact">the webmasters email address</a>, but
please submit any bugs you find <a href="http://bugs.php.net/">in the
bug system</a> classifying them as a "PHP.net website problem" and providing
as much information as possible (OS, Browser version, Javascript errors, etc..).
</p>
<hr />
<h1>PHP 4.3.4 released!</h1>
<p>
<span class="newsdate">[03-Nov-2003]</span>
The PHP developers are proud to announce the immediate availability of
<a href="release_4_3_4.php">PHP 4.3.4</a>. This release contains a fair
number of bug fixes and we recommend that all users of PHP upgrade to
this version. Full list of fixes can be found in the
<a href="ChangeLog-4.php#4.3.4">NEWS</a> file.
</p>
<hr />
<h1>PHP 5.0.0 Beta 2 released</h1>
<p>
<span class="newsdate">[30-Oct-2003]</span>
<a href="/downloads.php">PHP 5.0.0 Beta 2</a> has been released.
This is the first feature complete version of PHP 5, and we recommend for PHP users
to try it. PHP 5 is still not ready for production use!
</p>
<p>
Some of the more major changes include:
</p>
<ul>
<li>
PHP 5 features the Zend Engine 2.
</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>
SQLite has been bundled with PHP. For more information on SQLite, please visit their
<a href="http://www.hwaci.com/sw/sqlite/">website</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>
Streams have been greatly improved, including the ability to access low-level socket
operations on streams.
</li>
</ul>
<p>
There have been many changes since Beta 1, some of them documented in the
<a href="/NEWS_PHP_5_0_0b2.txt">NEWS file</a> and most language
changes are documented on <a href="/zend-engine-2.php">our PHP 5/Zend Engine 2 page</a>.
</p>
<hr />
<?php news_image("http://www.afup.org/forumphp/", "afup2003.png", "Forum PHP"); ?>
<h1>Forum PHP in Paris, November 26 & 27th</h1>
<p>
<span class="newsdate">[26-Oct-2003]</span>
The French PHP User Group <a href="http://www.afup.org/">AFUP association</a>
is proud to announce the third annual PHP meeting in Paris,
on November 26th and 27th, 2003. Developers and managers will
gather to meet Zeev Suraski and other prominent community experts
for two days of sessions, packed with
<a href="http://www.afup.org/forumphp/">solutions and advanced techniques</a>
(in French).
</p>
<hr />
<?php news_image("http://www.directionphp.biz/", "directionphp.png", "Direction|PHP"); ?>
<h1>Monthly PHP Magazine in French launched!</h1>
<p>
<span class="newsdate">[15-Oct-2003]</span>
<a href="http://www.nexen.net/">Nexen.net</a> has launched Direction|PHP,
the first PHP and MySQL dedicated magazine in French. This monthly publication
features indeep coverage of PHP industry, business and user cases and technical
articles from PHP|Architect.
</p>
<p>
For more information, read the <a
href="http://www.directionphp.biz/index.php">Direction|PHP website</a> (in French).
</p>
<hr />
<?php news_image("http://www.apachecon.com/", "apachecon2003.jpg", "ApacheCon"); ?>
<h1>ApacheCon 2003, the Global Hub for All Things Apache</h1>
<p>
<span class="newsdate">[11-Oct-2003]</span>
The <a href="http://www.apachecon.com/">official conference
of the Apache Software Foundation</a> will be held November 16-20,
2003 in Las Vegas. More than 60 sessions highlight core and
next-generation Apache server tools, offering a wide
range of beginner, intermediate and advanced sessions.
Learn firsthand the latest developments in Apache, as
well as key open source projects, including PHP, Perl,
XML, Java, MySQL, and WebDAV.
</p>
<hr />
<?php news_image("http://www.phpcruise.com/", "phpcruise.png", "php|cruise"); ?>
<h1>php|cruise: The World's First Ever PHP-only Cruise</h1>
<p>
<span class="newsdate">[20-Sep-2003]</span>
The publishers of php|architect have announced <a
href="http://www.phparch.com/cruise/">php|cruise</a>, a five-day cruise to the
Bahamas Islands featuring a lot of fun and over thirty different
sessions dedicated to PHP from well known experts like Wez Furlong, Alan
Knowles and John Coggeshall.
</p>
<p>
The cruise will take place March 1st to 5th, 2004. The organizers have
<a href="http://www.phparch.com/cruise/contest/">announced a contest</a> to
give away one free place on the cruise.
</p>
<hr />
<?php news_image("http://www.zend.com/zend/php_survey_results.php", "zendtech_logo.gif", "Zend Technologies"); ?>
<h1>PHP Usage Survey Results</h1>
<p>
<span class="newsdate">[18-Sep-2003]</span>
<a href="http://www.zend.com/zend/php_survey_results.php">Check out</a> the results
of the PHP Usage Survey conducted by Zend Technologies, including feedback
from thousands of PHP users around the world. Thanks for all who contributed!
</p>
<hr />
<?php news_image("http://weblabor.hu/php-doc-chm", "chmhelp.gif", "CHM"); ?>
<h1>PHP Manual CHM Edition - 12th build</h1>
<p>
<span class="newsdate">[06-Sep-2003]</span>
The 12th build of the extended CHM edition is out now, and
<a href="/get/php_manual_chm_12.zip/from/a/mirror">available for download</a>.
This build contains updated content and user notes, as well as fixes the
bugs found in the previous build. A new optional "phpZ" skin is also
introduced in this release, courtesy of Gonzalo De la Pena Andreu. For
more information, visit <a href="http://weblabor.hu/php-doc-chm/">the
homepage of this edition.</a>
</p>
<hr />
<?php news_image("http://www.phpconference.de/2003/index_en.php", "international_conference_2003.gif", "International PHP Conference 2003"); ?>
<h1>International PHP Conference 2003 program online</h1>
<p>
<span class="newsdate">[05-Sep-2003]</span>
The organisers of the
<a href="http://www.phpconference.de/2003/index_en.php">International
PHP Conference</a> which will take place for the third time in Frankfurt,
Germany from Nov. 2 to 5, 2003 have announced the conference program.
The conference board which consists of Bjoern Schotte, Zak
Greant, Zeev Suraski, Thies Arntzen and Jan Lehnardt has chosen more than
40 sessions for the main program on Nov. 4 and 5 and 7 in-depth
Power Workshops for the pre conference program on Nov. 2 and 3. Among the
prominent speaking crowd is Zeev Suraski, Ken Coar and many others. See
<a href="http://www.phpconference.de/2003/index_en.php">the conference
website</a> for more information.
</p>
<hr />
<p class="center"><a href="/news-2003.php">News Archive</a></p>
<?php commonFooter(); ?>