php重定向

echo "<script> alert('请先登录!');parent.location.href='/login/'; </script>";

header('location:http://www.baidu.com');

原文地址:https://www.cnblogs.com/zinging/p/12979201.html