Jump to content


Photo

Automatic Refresh every 30 seconds


  • Please log in to reply
3 replies to this topic

#1 Mateobus

Mateobus
  • Members
  • PipPipPip
  • Advanced Member
  • 95 posts

Posted 07 September 2006 - 06:17 PM

Does anybody know how to make a webpage automatically refresh every 30 seconds?

#2 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 07 September 2006 - 06:19 PM

More of an html question really...

Use Meta-Refresh or Javascript.

Google is your friend  :D

Regards
Rich
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools

#3 cmgmyr

cmgmyr
  • Members
  • PipPipPip
  • Advanced Member
  • 1,278 posts
  • LocationUSA

Posted 07 September 2006 - 07:00 PM

Like this
echo "<META HTTP-EQUIV=Refresh CONTENT=\"30; URL=yourpage.php\">";

The 30 is where you put the amount of seconds

-Chris

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 07 September 2006 - 07:08 PM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users