So i have a web server running apache, with php enabled, and a game server running a C++ daemon that i botched together myself fairly quickly. Now i need to make a PHP script which sends a command to the daemon on the other server. They're not on the same network by the way, theyre miles apart. How would i go about this? I fear this involves a bunch of socket-programming and a TCP connection. Is there an easy way to do this?