Re: Alternatives for Meta Refresh
| From: | Timothy Hitchens \(HiTCHO\) | Date: | Wed, 01 Jan 2003 07:50:39 +0000 |
| Subject: | Re: Alternatives for Meta Refresh | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129833@lists.php.net to get a copy of this message | ||
Let me give you a direction with this one.
You can use a http/1.1 stream and keep flushing the buffer with an script
timeout set to 0.
Simply open the page then just add something to the buffer and flush and
then
wait a little while then flush... just like a database would do.
I do have a working application somewhere.
No clicking... but remember that IE has a 2 connection limit per domain.
(without registry changes)
Timothy Hitchens (HiTCHO)
tim@hitcho.com.au
HiTCHO | Open Platform Web Development
Consulting - Outsourcing - Training - Support
----- Original Message -----
From: "Justin French" <justin@indent.com.au>
To: "Stephen" <webmaster@melchior.us>; "PHP List"
<php-general@lists.php.net>
Sent: Wednesday, January 01, 2003 5:42 PM
Subject: Re: [PHP] Alternatives for Meta Refresh
> on 31/12/02 2:48 AM, Stephen (webmaster@melchior.us) wrote:
>
> > I'm writing a PHP chat script and I'm rather stumped on this. I either
want
> > the chat window to refresh when there's a new message or refresh every
few
> > seconds but not with meta refresh, rather something with less noise (the
> > infamous IE clicking sound) and/or something faster. The only thing I
can
> > think of is the header function. Any ideas?
>
> The header() function (like everything in PHP) happens SERVER SIDE before
> the page hits the browser, so this won't help.
>
> META refresh is the only standard, HTML way to do it, AFAIK -- and even
> then, i'm not 100% sure that all browsers and user agents support it.
>
> Another option would be for javascript to refresh the page, but again,
this
> will probably invoke the IE clicking sound.
>
>
> Most chat programs do use either meta refresh, or some sort of Java applet
> instead of refreshing.
>
>
> I think there are also some Flash chat things out there too.
>
>
> Cheers,
>
> Justin
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>