note 43681 deleted from function.array-key-exists by aidan
| From: | aidan@php.net | Date: | Wed, 04 Aug 2004 08:14:44 +0000 |
| Subject: | note 43681 deleted from function.array-key-exists by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-73900@lists.php.net to get a copy of this message | ||
Note Submitter: amsea@lvge.com
----
a nice virtual domain system kernel.
use this function.
$sign = explode('.', $_SERVER["HTTP_HOST"]);
$sign = $sign[0];
$vHost = array(
'yilan' => 'yilan.index.php',
'yl' => 'http://oo8h.com',
'ice' => 'http://oo8h.com/about.php',
'ise' => 'nce.index.php',
);
if (array_key_exists($sign, $url)){
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".$url[$sign]);
header("Connection: close");
exit;
}
power by http://oo8h.com