欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  php教程

php转换asp问题!!高手请进!

程序员文章站 2024-01-25 17:21:28
...

?php $where = $_SERVER["HTTP_ACCEPT_LANGUAGE"]; $now_char = explode(',',$where); $where = explode('-',$now_char[0]); $en=$where[0]; $site = $where[1]; if($site=='US' || $site=='us') { header('Location: http://9775956.k84.opensrs.cn/2012/')

$where = $_SERVER["HTTP_ACCEPT_LANGUAGE"];
$now_char = explode(',',$where);
$where = explode('-',$now_char[0]);
$en=$where[0];
$site = $where[1];

if($site=='US' || $site=='us')
{
header('Location: http://9775956.k84.opensrs.cn/2012/');
exit;
}
else
{
header('Location: http://www.sunearthpower.com/web/');
exit;
}
?>

上面一段代码是php版本的语言判断,如何用asp实现同样的功能?