1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

/pear redirects to the manual, as /include, according to

our standards
This commit is contained in:
Gabor Hojtsy
2001-07-27 12:47:15 +00:00
parent d33e678f15
commit f8935353aa

View File

@@ -1,2 +1,16 @@
<?php header("Location: http://pear.php.net/"); ?>
<?php
// This page tries to find the manual page for PEAR
// because people can access that page by using
// http://www.php.net/pear as a REQUEST_URI
require_once 'prepend.inc';
require_once 'manual-lookup.inc';
$file = find_manual_page(default_language(), "pear");
if ($file) {
header("Location: $file");
} else { header("Location: /"); }
?>