Reloading Webpage

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
shidagernade
Forum Newbie
Posts: 6
Joined: Mon Oct 06, 2008 4:26 pm

Reloading Webpage

Post by shidagernade »

Hi,

My webpage is accessed by multiple clients at a time.. and I want to refresh all those pages when ever any one of the clients updates certain fields.. Could anyone please give me some pointers on how to do that..

I will really appreciate any help.

Regards,
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: Reloading Webpage

Post by aceconcepts »

meta refresh
shidagernade
Forum Newbie
Posts: 6
Joined: Mon Oct 06, 2008 4:26 pm

Re: Reloading Webpage

Post by shidagernade »

Hi,

Can you provide a bit more details about meta refresh.. Isn't it the case that meta refresh will refresh the page after a certain fixed time that is provided as parameter to it.. In my case I just want to reload all the client webpages whenever anyone of the clients makes a change to the webpage..

Thanks
User avatar
Syntac
Forum Contributor
Posts: 327
Joined: Sun Sep 14, 2008 7:59 pm

Re: Reloading Webpage

Post by Syntac »

You might be able to do this with Ajax, but I shudder at the thought of what it might involve.
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: Reloading Webpage

Post by aceconcepts »

Using meta refresh you can reload a page after a certain period or on an event or in a conditional statement.

Look up meta refresh in your preferred search engine - do a little research eh :wink:
shidagernade
Forum Newbie
Posts: 6
Joined: Mon Oct 06, 2008 4:26 pm

Re: Reloading Webpage

Post by shidagernade »

Hi aceconcepts,

I did some research on meta refresh as you suggested.. :D and I can see that you can use it within conditional statements and on events.. but the problem is that those events have to generated by the same page that wants to refresh itself.. Let me explain my question in a bit of details...
Lets assume there are clients A and B and both access the webpage X at the same time.. Client A writes something on the webpage X and presses ok.. I can use meta refresh over here to reload client A's webpage.. but at the same time I want the webpage of client B to reload itself so that the changes made by client A are reflected at client B's webpage as well.. How can I achieve this functionality.. do I need to use cookies ???

I am really grateful to you for your help.

Thanks,
Post Reply