By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,409 Members | 1,524 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,409 IT Pros & Developers. It's quick & easy.

Automatic refresh of screen.

P: n/a
Bob
I have a monitor in a public place and I want the page to automatically
refresh, approximately every 5 minutes.

What is the best way to do this?

It is a .php page accessing a mysql database.

Thanks

Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Bob wrote:
I have a monitor in a public place and I want the page to automatically
refresh, approximately every 5 minutes.

What is the best way to do this?

It is a .php page accessing a mysql database.

Thanks


Just plant this in the HEAD section of the HTML output:

<META http-equiv="Refresh" content="300;http://dom.ain/path/to/sript.php">

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 17 '05 #2

P: n/a
Philip Ronan wrote:
<META http-equiv="Refresh" content="300;http://dom.ain/path/to/sript.php">


Oops, typo.

Should be ... content="300;url=http://dom.ain/path/to/script.php">
^^^^ ^

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 17 '05 #3

P: n/a
Of course, you can use any of the "http-equiv" meta-tags as Headers
instead:

<?php header("Refresh: 300;url=http://whatever"); ?>

Jul 17 '05 #4

P: n/a
Sp**************@gmail.com wrote:
Of course, you can use any of the "http-equiv" meta-tags as Headers
instead:

<?php header("Refresh: 300;url=http://whatever"); ?>


I wouldn't do that. The HTTP specifications don't actually define a
"Refresh" header; this is just a hack supported in the client software.

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 17 '05 #5

P: n/a
Bob,

Depending on the platform, you can use a javascript refresh also with a
meta refresh (the meta refresh was already stated). The reason for
doing both is just incase that certain things are not working as they
are supposed to.

As client software depends on the implementation. You might as well use
both. Because if the stop button is hit or somehow forced you can loop
the javascript for every n seconds.

Mike
Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.