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)
[EMAIL PROTECTED]


HiTCHO | Open Platform Web Development
Consulting - Outsourcing - Training - Support


----- Original Message -----
From: "Justin French" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Wednesday, January 01, 2003 5:42 PM
Subject: Re: [PHP] Alternatives for Meta Refresh


> on 31/12/02 2:48 AM, Stephen ([EMAIL PROTECTED]) 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
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to