Posted 15 May 2010 - 02:31 PM
No, it is not the same thing as setting up a web server. What you are trying to do is set up a socket on a server, and a client to connect to that socket. You can use PHP to listen on a socket, and there are tons of step by step tutorials, but that is not exactly what PHP is good for.
I don't mean to be discouraging, but without knowledge of things like how the network protocol stack works you are not going to get far. Socket programming is an advanced topic. Regardless, this is not something you are going to figure out in a couple of hours, or a couple of days.