" . $directory . "/toc.txt";
if (substr($fp[0], 0, 6) != '') break; //404 error
$slash = strrpos($directory, '/');
$directory = substr($directory, 0, $slash);
}
}
$slash = strrpos($_SERVER['REQUEST_URI'], '/');
$directory = "/home/httpd/vhosts/tartarus.rpgclassics.com/httpdocs" . substr($uri, 0, $slash);
while (!file_exists($directory . "/toc.txt"))
{ $slash = strrpos($directory, '/');
$directory = substr($directory, 0, $slash);
}*/
$slash = strrpos($_SERVER['REQUEST_URI'], '/');
$url = substr($_SERVER['REQUEST_URI'], 0, $slash);
$file = file("http://tartarus.rpgclassics.com" . $url . "/toc.txt");
for ($i = 0; $i < sizeof($file); $i++) print $file[$i];
?>
|
|