Show HTML while Sleep

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Show HTML while Sleep

Post 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...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

search keyword: http push.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post 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.
Post Reply