actually, now that i think about it, the real problem is how to keep the loop alive after the script terminates. hmm; that is a problem. you could have a cli script run in the background. the only way youll be able to get data to it from the scripts that send output to the browser is through something external to php. you could use files, a database or something like shared memory. -nathan