Mateobus Posted September 7, 2006 Share Posted September 7, 2006 Does anybody know how to make a webpage automatically refresh every 30 seconds? Link to comment https://forums.phpfreaks.com/topic/20035-automatic-refresh-every-30-seconds/ Share on other sites More sharing options...
HuggieBear Posted September 7, 2006 Share Posted September 7, 2006 More of an html question really...Use Meta-Refresh or Javascript.Google is your friend :DRegardsRich Link to comment https://forums.phpfreaks.com/topic/20035-automatic-refresh-every-30-seconds/#findComment-87887 Share on other sites More sharing options...
cmgmyr Posted September 7, 2006 Share Posted September 7, 2006 Like this[code]echo "<META HTTP-EQUIV=Refresh CONTENT=\"30; URL=yourpage.php\">";[/code]The 30 is where you put the amount of seconds-Chris Link to comment https://forums.phpfreaks.com/topic/20035-automatic-refresh-every-30-seconds/#findComment-87918 Share on other sites More sharing options...
wildteen88 Posted September 7, 2006 Share Posted September 7, 2006 Or you can force a redirect using:header("Refresh: 30; URL=path-to-file.php");However you'll have to make sure there is no html output before you use this function. Link to comment https://forums.phpfreaks.com/topic/20035-automatic-refresh-every-30-seconds/#findComment-87924 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.