I am trying to build a website where two people can talk to each other. I am using AJAX, PHP and MySQL. What I would like is that, when one person submits a message to the server, the other person sees the message.
In effect I would like to send information to the client without the client reqesting it. Is there any way to do this?
I suppose it would be possible to send an XML-HTTP request to a php page that loops until a value is added to the database, but I am not sure whether this is kind on the server.
Any ideas?
In effect I would like to send information to the client without the client reqesting it. Is there any way to do this?
I suppose it would be possible to send an XML-HTTP request to a php page that loops until a value is added to the database, but I am not sure whether this is kind on the server.
Any ideas?