473,397 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Automatic refresh of screen.

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
5 5053
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bilal | last post by:
Hi, I'm a complete beginner in Javascript and php ... so forgive me for asking an easy/simple solution to the following problem: I'm developing an application that involves multi-screen in...
9
by: Mark | last post by:
I have a working PHP/MySQL application used for data entry. The data entry screen includes a "Save" button. The PHP code for this button looks like this: if (isset($_POST)) { if ($_POST ==...
1
by: Matthew Ferri | last post by:
I'm using Windows 2000 Pro SP4 and Office 2000 Pro Sp3. I have some dynamic database pages that I do not want a user to see from their local cache of pervious visits to this page. When these...
1
by: Matthieu Exbrayat | last post by:
Hie all, I am currently using materialized views within Oracle 9i. For instance I create mv1 on DB bddist2, as a snapshot of sur1 on bddist1 : SQL> create materialized view mv1 2 refresh...
7
by: Jack | last post by:
Hi, In my application, the main page is accessed via a login screen. A particular record is accessed based on the value of login page. Everything works fine. However, if this screen is kept idle...
3
by: John Baker | last post by:
Hi: As in the "Wizard of Oz", I want people to "pay no attention to the man behind the curtain", by freezing the screen while a whole lot of things happen. I know about ECHO OFF, but this...
3
by: serge anton | last post by:
Hi, I want to refresh all the screen (including the desktop) or a part of the screen. I can have a reference to the screen with win32 API : public static extern int GetWindowDC(IntPtr...
0
by: Casey Bralla | last post by:
For some reason, I can't get curses to refresh the screen. Can someone offer a suggestion to try to debug this? Here is my python code snippet: stdscr=curses.initscr() curses.noecho()...
2
by: anijos | last post by:
By default, the iPhone will only check for new emails manually when you open the Mail screen or when you tap the refresh icon (the icon in the lower left screen of the email list). You can configure...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.