为什么这样写会出错,求解决方法?谢谢
<?php
function getBrowser(){
$agent=$_SERVER["HTTP_USER_AGENT"];
if(strpos($agent,'MSIE')!==false || strpos($agent,'rv:8.0')|| strpos($agent,'rv:7.0')|| strpos($agent,'rv:6.0')) //ie判断
header('Location: http://yuyoushan/wp-content/themes/ken2.0/kdzt/bdie/index.html');
?>
难道不是你的function 少了右
}
?代码,起码编辑一下,让人看得清
报错了,最好错误信息一并展示