方法一:header("Location:  index.php");      方法二:echo  "<script>window.location  =\"$PHP_SELF\";</script>";      方法三:echo  "<META  HTTP-EQUIV=\"Refresh\"  CONTENT=\"0;  URL=index.php\">";      方法四:<?php  ob_start();  ?>  html代码  <?  ob_clean();  include("next.php");  ob_end_flush();  ?>还有没补充的。。

解决方案 »

  1.   

    应该是木有了。。不过1,2,3都是跳转,意思是浏览器接收第一个页面http返回后向第二个页面做一次http get请求
    4嘛就是个文件引入,不算跳转。
      

  2.   

    难道4种还不够用?
    这张更可爱:http://my.csdn.net/my/album/detail/1074601
      

  3.   

    我觉得重定向,应该是第一条用得多:header("Location: index.php");   比如301,404重定向等。header(""HTTP/1.0 404 Not Found"); 这些用在开源系统都比较常见。