$lan = substr(?$HTTP_ACCEPT_LANGUAGE,0,5);
if ($lan == "zh-cn")
print("");
else
print("");
?>
HTML网页根据来访这的浏览器语言不同自动跳转多语言页面
在 之间加入如下代码。
http://www.bkjia.com/PHPjc/319349.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/319349.htmlTechArticlePHP代码: ? $lan=substr(?$HTTP_ACCEPT_LANGUAGE,0,5); if($lan=="zh-cn") print("metahttp-equiv='refresh'content='0;URL=gb/index.htm'"); else print("metahttp-equiv='refresh'content='0...