I would like to code a class that could (with the help of some sort of AJAX functtionality) provide instant on site customer service via an instant messaging protocol.
What would the best way be, to implemennt this in PHP? I could use popen or proc_open but do these functions allow the process to continue after a request is finished? How would I keep the socket open? Or should I use something like Simple AIM (CLI JAVA) to handle the connection, and let PHP pass commands to it. I'm looking for something as simple as possible.