HTML网页根据来访这的浏览器语言不同自动跳转多语言页面 在 之间加入如下代码。 http://www.bkjia.com/PHPjc/319349.htmlwww.bkji">
当前位置:Gxlcms > PHP教程 > php自动跳转中英文页面_PHP教程

php自动跳转中英文页面_PHP教程

时间:2021-07-01 10:21:17 帮助过:2人阅读

PHP代码:
$lan = substr(?$HTTP_ACCEPT_LANGUAGE,0,5);
if ($lan == "zh-cn")
print("");
else
print("");
?>

HTML网页根据来访这的浏览器语言不同自动跳转多语言页面

在 之间加入如下代码。


www.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...

人气教程排行