tags:

views:

33

answers:

1

I've written a php file that changes a MySql table entry when it receives an http post. I would also like the php file to send out a notification to the table entry's owner. This idea is similar to a chat room or instant messengering program. I've looked at php chat scripts but I really need something that has a very simple interface that is customizable. Can anyone point me in the right direction?

A: 

So you want to synchronize a set of clients, do you?

If so, look at the Long Polling technique. It's quite simple: The client opens a connection but the server does not respond until data is updated.

On the downside this won't work well with PHP. You will need to sleep() several connections, therefore blocking PHP processes.

If you have the possibility I would recommend using node.js to do stuff like that. Long Polling Chats are quire simple to implement using node ;)

nikic
I've already implemented a Comet-like pattern to do this. However, I feel the technique is too bandwidth intensive. A php chat client is far less expensive on bandwidth usage.