php 后端刷新页面

Posted Json159

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php 后端刷新页面相关的知识,希望对你有一定的参考价值。


  public function index()
    {
        $b = date(‘Y-m-d H:i:s‘);

        header(‘refresh:10‘);
        $c = strtotime($b);
        $d = strtotime(‘2019-02-15 16:34:00‘);
        if($c > $d){
            header(‘Location: http://www.baidu.com‘);
        }

        return $b;
    }

  

以上是关于php 后端刷新页面的主要内容,如果未能解决你的问题,请参考以下文章