Zenith wrote:
> I have readying "web application develoment with PHP4.0" by Tabias
> Ratschiller and Till Gerken at these days!
> In chapter 3, I have talk about creating a IRC client with phpIRC and
> HTML streaming,
> but it hasn't talk too much about the implementation, also, it
> haven't talk much about HTML streaming.

Complete source is on the CD-ROM that comes with the book or available 
from http://www.phpwizard.net/projects/

> He just say HTML streaming
> can create a interface which can let the process (running php script)
> continously output something to the HTTP client, without close a
> connection and establish again...
>
> Right, my question is, anyone can give me more info, or pointer for
> this two topic?
> Especially, the web site which provide the info i need and what type
> of browser support HTML streaming?

I can't point you to any further information, but this is what I know:
-HTTP-streaming is done by just continously outputting HTML and flush() 
after each chunk, so it is sended to the browser and displayed.
-This works with most browsers, because these are designed to begin 
displayig parts of the page before the complete page has been recieved.
-It doesn't work well when the client uses a HTTP-proxy. Some proxies 
don't do streaming. Some are picky about the headers you send 
(connection type, for example).
-Occasionally send some whitespace to prevent a connection reset by the 
browser and make it "hold the line".
-You should be careful about the structur or your HTML-Code because 
streaming only works well when the HTML-code can be send in chunks and 
nicely be desplayed after each chunk has been sent. No nested tables.

regards
Wagner

-- 
Three may keep a secret, if two of them are dead.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to