Page 1 of 1

Show HTML while Sleep

Posted: Mon Jul 24, 2006 3:44 pm
by tecktalkcm0391
Is there anyway to "send" html to a browser, and then sleep and then do the next step?

"Send" being having the client see part of the HTML...

Posted: Mon Jul 24, 2006 3:47 pm
by feyd
search keyword: http push.

Posted: Mon Jul 24, 2006 4:28 pm
by onion2k
Echo out some HTML, flush(), maybe ob_flush() as well depending on how PHP and Apache are set up, sleep(), write some more HTML, flush(), repeat ad infinitum.