[nycphp-talk] Forcing page refresh

Jon Baer jonbaer at
Thu Aug 7 11:18:14 EDT 2003

you could probably get away using a hidden frame on each of the viewers
client and occasionally polling a queue on the server ... let the submit
write the text to the queue/text/db file and then let the viewers poll it
for changes and if changes are made using javascript to reload the
corresponding window ...

i did this once w/ a java applet but i think u can get away w/ a simple php
script ...

- jon

pgp key:
fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47

----- Original Message ----- 
From: <crisscott at>
To: <talk at>
Sent: Thursday, August 07, 2003 7:56 AM
Subject: [nycphp-talk] Forcing page refresh

> I am trying to figure out if it is possible to force a page refresh for
all users viewing a page at the same time.  I want all users to see a new
page when one user submits info via a form.  I am picturing something along
the lines of:
> if(submit)
> {
>    write_to_file($POST[new info]);
>    foreach($ip_addr in $ip_addr_list)
>    {
>      fsockopen($ip);
>      fputs(headers to refresh page);
>      fclose();
>    }
> }
> else
> {
>    echo read_from_file();
> }
> My question is, can I send headers to an ip address and expect the web
browser to refresh even though the user at that address hasn't done
> _______________________________________________
> talk mailing list
> talk at

More information about the talk mailing list