1
0
mirror of https://github.com/php/web-php.git synced 2026-03-24 07:12:16 +01:00
Files
archived-web-php/include/index.php
2001-12-29 00:10:55 +00:00

20 lines
415 B
PHP

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