<?php
echo"<meta http-equiv=\"refresh\" content="3;URL=http://www.aaa.com">";
?>

解决方案 »

  1.   

    sleep(3);
    echo  "<script>window.location  =\"http://www.csdn.net\";</script>";
      

  2.   

    to  xiaodong1981(xiaodong) 
    在跳转之前还要输出一段文字,所以header不行了
    to ccterran(iwind) 
    有一点小小的语法错,我修改好了,可以实现
    不过,这种技巧哪得呢,我都在php没见到过
    to feel8(准备早起的鸟)
    也可以,这是javascript的方法吗谢谢各位,不知还有没有其他方法
      

  3.   

    呵呵,不是html中的meta标签中实现嘛~~~
    <meta http-equiv="refresh" content="5;URL=http://www.target.com">
    在下面可以添加一些文字啦,毕竟有5秒的时候够看到文字了~呵呵
      

  4.   

    不必非得用PHP生成啊
    <?php
    ?>
    <meta http-equiv="refresh" content="10;url=http://xylegend.myrice.com">
      

  5.   

    <script>
    setTimeout("location.href='a.php'",5000);
    </script>
      

  6.   

    不好意思,没有注意转义,头太晕了.sleep不太好,因为那个网页到3秒后才能显示
      

  7.   

    <meta http-equiv="refresh" content="3;URL=http://#">这个就可以呀。3秒以后跳转。