同一空间绑定多个域名而实现访问不同页面的PHP代码
更新时间:2006年12月06日 00:00:00 作者:
<?php
switch ($_SERVER["HTTP_HOST"]) {
case "www1.aspcn.net":
header("location:index1.htm");
break;
case "www2.aspcn.net":
header("location:index2.htm");
break;
case "www3.aspcn.net":
header("location:index3.htm");
...... 继续添加 ......
break;
}
?>
switch ($_SERVER["HTTP_HOST"]) {
case "www1.aspcn.net":
header("location:index1.htm");
break;
case "www2.aspcn.net":
header("location:index2.htm");
break;
case "www3.aspcn.net":
header("location:index3.htm");
...... 继续添加 ......
break;
}
?>
您可能感兴趣的文章:
相关文章
PDO版本问题 Invalid parameter number: no parameters were bound
发现在客户的某个PHP版本下,执行某类操作的时候,总是会报如下错误 Invalid parameter number: no parameters were bound,经google,发现是php版本过低导致2013-01-01
php数组函数序列之array_sum() - 计算数组元素值之和
array_sum() 函数返回数组中所有值的总和。如果所有值都是整数,则返回一个整数值。如果其中有一个或多个值是浮点数,则返回浮点数2011-10-10
php提示无法加载或mcrypt没有找到 PHP 扩展 mbstring解决办法
今天帮客户配置phpmyadmin的时间,无法加载 mcrypt (外链,英语) 扩展,请检查您的 PHP 配置。2012-03-03


最新评论