In simple there is any way to redirect a page for every ten seconds in PHP
+2
A:
You don't need PHP for that. HTML will be enough. If you redirect to a page that has the same meta tag defined all the time you will have your "redirect-every-10-seconds".
<html>
<head>
<meta http-equiv="Refresh" content="10; url=http://www.example.com/">
</head>
<body>
page body
</body>
</html>
RaYell
2009-08-25 08:52:45
+4
A:
Using HTML:
<meta http-equiv="refresh" content="10">
Using JavaScript:
window.setTimeout(function() {
location.reload();
}, 10000)
These will reload only the current page.
Gumbo
2009-08-25 08:53:27
A:
header( "refresh: 10; url={$_SERVER['PHP_SELF']}?{$_SERVER['QUERY_STRING']}" );
The Disintegrator
2009-08-25 09:01:48
*Refresh* is not an official HTTP header field. So I doubt that it’s supported widely.
Gumbo
2009-08-25 09:03:30
All usual browsers support it. Maybe it's not in the papers, but is a defacto standard.
The Disintegrator
2009-08-25 20:25:36
"usual" browsers support a lot of things that are "none standard" - but for that very reason you shouldn't use them
iAn
2009-08-26 11:01:51