You might not know this, but PHP comes with a very capable socket programming API. These socket functions now include almost everything you would need for socket-based client-server communication over TCP/IP, and can be easily deployed to build simple network applications.