Re: Dir Help PLEASE
| From: | nospam | Date: | Sat, 13 Jan 2001 00:19:27 +0000 |
| Subject: | Re: Dir Help PLEASE | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34331@lists.php.net to get a copy of this message | ||
<?
$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" <chrisderson@ameritech.net> wrote in message
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?