I don't know how they're doing it, but one way you could is to just keep writing to the client (put your php script in a never ending loop and don't buffer output). It will only work on clients that try to render immediately (most browsers).
On Thu, 2003-12-11 at 15:06, Michael Ryan Byrd wrote: > How does a server push content to a browser -- or rather, how does it appear to > do such? > > For example, consider a chat room application (like > http://phpopenchat.org/features.php), where the text from users appears on the > screen as users enter it in. All, without an annoying flash of a meta-refresh > tag, or a page reloading or anything. > > Are they using javascript on a timer to poll the server to get the info and post > it? Anybody ever done this? > > Ideas? > > > ____________________ > BYU Unix Users Group > http://uug.byu.edu/ > ___________________________________________________________________ > List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
