In article <92************ **************@ posting.google. com>,
tr****@gtsquare d.com (Tom Post) wrote:
I am doing a simple php header refresh --
header('refresh : 10; url=msgs.php');
that just does a call back to my script every 10 seconds. Things work
great when the page is first loaded up, but if the end user hits F5 or
the refresh button, then the page stops refreshing indefinately. Any
ideas how to make it so that the page perpetually refreshes regardless
of what the end user presses?
I think you're confusing the header information that the server sends to
the browser with the <meta http-equiv="Refresh" > tag.
The book I have on php doesn't describe the "refresh:" feature of the
header() function. It describes redirections, expirations and cache
stuff, authentication, and content-type, but no refresh. Nor does
http://us4.php.net/manual/en/function.header.php
It could be you've chosen the wrong way to implement this. You can
further check this by looking at the information the browser and server
are sending by telneting into the server and pretending to be a browser.
Some browsers like iCab have a log feature that keeps a transcript of
activity. Try turning on that feature if you browser supports it.
What happens if you code the header as html:
echo "<HTML>\n",
"<HEAD>\n",
"<META HTTP-EQUIV='Refresh' CONTENT='10; URL=msgs.php'>\ n";
Also be aware that some browsers don't like the refresh very well. I've
had to remove it from my site because IE on the Mac didn't respond well
to it.
--
DeeDee, don't press that button! DeeDee! NO! Dee...