Hosted by
|
<?php
// $Date: 2004/01/13 02:25:25 $ // $Revision: 1.4 $ // $Author: jcrocholl $
$request = $_SERVER['REQUEST_URI']; // print "$request<br/>\n";
$path = explode('/', $request); // foreach ($path as $dir) echo "+[$dir]<br>\n";
array_shift($path); // empty leading field // array_shift($path); // roemer $page = array_pop($path); //array_shift($path); // ada
foreach ($path as $dir) $root .= '../'; if (!$root) $root .= './'; $fileroot = '../../'; // print "$root<br/>\n";
// remove trailing .html preg_match('/^(.+)\.html$/', $page, $matches); $page = $matches[1]; array_push($path, $page);
$stem = implode('/', $path); // print "$stem<br/>\n";
?>
|