Home > php教程 > php手册 > php转换asp问题!!高手请进!

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 19:40:44
Original
999 people have browsed it

?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实现同样的功能?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template