- header()函数;
header('location:http://www.baidu.com');
- meta标签;
echo '<meta http-equiv="refresh" content="1;url=http://www.baidu.com">';
- script标签;
echo '<script>window.location.href="http://www.baidu.com"</script>';
php 实现重定向的三种方式
猜你喜欢
转载自blog.csdn.net/qq_43737121/article/details/113062251
今日推荐
周排行