hi
there is two ways to make it work good:
1-the client refresh (connect) every 3 seconds to get the last messages -this method is simple and good but slow-.
2-the client will connect once to the server and the php script will keep the connection alive and send the messages and flush() then sleep(3) and loop again -good but there is an exception when the script runs on win32 the ignore_user_abort() and register_shutdown_function() also will not work properly and this method may coz a big loads because the scripts is in memory and still running ...
method 1 and method 2 has some benefits but both cause a big load on the server ...
what you suggest to choose to don't make a troubles with the web-hoster comp?