NYCPHP Meetup

NYPHP.org

[nycphp-talk] Forcing page refresh

crisscott at netzero.com crisscott at netzero.com
Thu Aug 7 10:56:03 EDT 2003


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 anything?  



More information about the talk mailing list
Automatic Email Organization without missing anything!