2011-03-27 49 views

回答

0

,你可以使用JavaScript尝试:

setTimeout(function(){ window.location = 'example.com' },10800) 

让我们知道了如何在3个半小时左右坐上...

0

你已经得到的PHP header()功能之间的困惑, HTML HEAD部分。

的PHP header('Location: newpage.htm');执行瞬时重定向到newpage.htm(和应直接后跟到die()一个呼叫)。没有可能延迟重定向。

中的HTML <head> ... </head>部分,您可以使用META标签进行延迟刷新或重定向:

<!-- Refresh the Current Page every 10 minutes (600 seconds) //--> 
<meta http-equiv="refresh" content="600"> 

<!-- Redirect to Another Page with a Delay of 10 minutes (600 seconds) //--> 
<meta http-equiv="refresh" content="600;url=http://anotherserver.com/">