页面重定向后一定时间PHP

有一些PHP函数重定向一段时间后。我看到它在某个地方,但不记得。这就像登录后的gmail重定向。请,有人可以提醒我吗?
header( "refresh:5;url=wherever.php" );

这是php方式设置标题,将在5秒内将您重定向到wherever.php

Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. It is a very common error to read code with include, or require, functions, or another file access function, and have spaces or empty lines that are output before header() is called. The same problem exists when using a single PHP/HTML file. (source 07000)

http://stackoverflow.com/questions/6119451/page-redirect-after-certain-time-php

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:页面重定向后一定时间PHP