At 7:01 AM +0000 22/5/02, Vinod Panicker wrote:
>What i have at the other end is a Instant Messenger client :)
Which is presumably accepting some form of HTML or at least a
stream of data sent over HTTP and displaying the data. If it's
notdoing this, Apache is almost certainly the wrong platform
for the server!!
So, just keep on streaming the data to the client. Keep the
script running and keep on sending the message.
If you need to have the client send a status stream to the
server, have it trigger a new message which will be received
by a second script on the server. This script would insert the
new status for that client in a database and the long-running
script would periodically poll the database and act upon
whatever status info it finds. Might not be "instant" update,
but that's dependent on how often you poll for change of status.
>Cant have the script running till the time the user logs out can
Why not? You're planning on sending data to them until they log
out, so why not keep one script running?
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php