有的。
header("location:b.php");

解决方案 »

  1.   

    范例一: 本例用来重导用户到 PHP 的官方网站。
    <?php
    Header("Location: http://www.php.net");  
    exit;
    ?>范例二: 欲让用户每次都能得到最新的资料,而不是 Proxy 或 cache 中的资料,可以使用下列的标头
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT");
    header("Cache-Control: no-cache, must-revalidate");
    header("Pragma: no-cache");范例三: 让用户的浏览器出现找不到文件的信息。
    <?php
    header("Status: 404 Not Found");
    ?>范例四: [email protected] (28-Apr-1999) 提供让用户下载文件的范例。
    header("Content-type: application/x-gzip");
    header("Content-Disposition: attachment; filename=some-file.tar.gz");
    header("Content-Description: PHP3 Generated Data");
      

  2.   

    可以用header前不能有输出.也可以用include包含一个文件.include('文件名');
      

  3.   

    echo "<META HTTP-EQUIV=REFRESH CONTENT='1;URL=index.php'>";
      

  4.   

    echo "<script language='javascript'> location.href='连接文件路径';alert('Loging Again ');</script>";
      

  5.   

    learning.......................................