1.用Javascript方法来跳转
echo “<script> location=’http://www.086php.com’ </script> “;
2.用PHP header函数
header(“Location: http://www.086php.com”);
说明:必须在网页没有任何输出的时候执行,要特别要注意空格。
3.利用html 标签 meta
echo “<meta. http-equiv=refresh content=’0; url= http://www.086php.com’>”;
说明:没有方法一的限制,但是如果前面有输出,则输出的内容会闪烁一下然后进入跳转到的页面。