<?

$value = substr($HTTP_HOST,0,strpos($HTTP_HOST,"."));

if ($value == "sub") { include("sub/index.php"); }
if ($value == "blabla") { include("blabla/index.php"); }
if ($value == "andsoon") { include("andsoon/index.php"); }

print "and so on .. there are more options for this";
print "remember that dns must set on * for www ..";

?>

--
If it can be dreamt, it can be build

"Chris" <[EMAIL PROTECTED]> wrote in message
001f01c07c3b$fc965840$8a1412d1@chris">news:001f01c07c3b$fc965840$8a1412d1@chris...
2 things, first how do I give something the filepath of a folder that
proceeded it?

Also, how can I set up subdomains like sub.domain.com?




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to