<?
$url=$HTTP_SERVER_VARS["HTTP_HOST"];//取得主机名
if($url=="10.10.2.235"){
...
}
if($url=="mail.xyz.com"){
...
}
?>
这样子不行吗?