Refresh Page

I have a page that displays messages.  I would like to make it refresh every 5 seconds.  How can I do this in php?
Who is Participating?
Diablo84Connect With a Mentor Commented:
indeed, put this in your head tag

<meta http-equiv="refresh" content="5;URL=page.php">

substituting page.php for the page you want to refresh to

if you want to combine some php to make this easier for you and refresh the curent page do this

<meta http-equiv="refresh" content="5;URL=<?php echo $_SERVER['PHP_SELF']; ?>">
PHP is server side, so it's not the tool of choice for this.  You might try a meta refresh.
just to clarify, by "in your head tag" i mean within the head tags
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.