Mailinglisten-Archive |
Sorry, das vorherige Snippel, war etwas angepasster für einen
VS-Domainordner mit maximaler Ordnerlänge.
Hier die richtige:
<?
$host = getenv(HTTP_HOST);
$pos = split ("[.]", $host);
$name=sizeof($pos)-2;
$sub =$pos[$name];
echo"
<html><head><title>$sub</title></head>
<frameset rows=100%,* frameborder=0 framespacing=0>
<frame src=/$sub/ scrolling=auto marginwidth=0 marginheight=0
frameborder=0>
</frameset>
</html>";
/*header("Location: /$sub/"); */
exit;
?>
Alexander Steffan
alex_(at)_steffan.cc
php::bar PHP Wiki - Listenarchive