为什么这样写会出错,求解决方法?谢谢
<?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');
?>
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
难道不是你的function 少了右
}?代码,起码编辑一下,让人看得清
报错了,最好错误信息一并展示
最好开下错误报告,不然真的要一行行代码过嘛