Refresh Question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
cto1mac
Forum Commoner
Posts: 54
Joined: Tue Jan 27, 2004 6:11 am
Location: Virginia Beach, VA

Refresh Question

Post by cto1mac »

Ok, here is the problem. My bosses want a centralized point to show statuses of various events at our company. Not a problem. Then he wants us to take and design a site (PHP) that all of us can login to, so we can keep track of these events. But here is where my problem starts. I need it so that if 5 people are logged in and have the status page up when I change a status of an event the new data reflects on their browsers. Without a manual refresh. Is it possible to make the server push out the refresh?? or something like that??

Thanks
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post by infolock »

yes, but this is normally done through javascript.
User avatar
cto1mac
Forum Commoner
Posts: 54
Joined: Tue Jan 27, 2004 6:11 am
Location: Virginia Beach, VA

Post by cto1mac »

Can you offer any location to look for that code or better yet an example??
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Post by microthick »

You can use a meta refresh, if you like. This tag goes in the <head> of the website and tells the browser to refresh to the specified page in about 5 seconds.

<META HTTP-EQUIV="refresh" content="5;URL=http://www.microsoft.com">

Or, you can use JavaScript.

You can find an example here:
http://www.javascriptkit.com/script/scr ... resh.shtml
Post Reply