title: Multiplayer PHP Game (Socket Programming)
body: <p>I want to make a simple online multiple player cards game using PHP/Ajax. I guess I need socket programming (I want it to be real time). I've worked with sockets before in Java, but not for an online program, just a network game. I searched but I didn't really find a comprehensive code.Also another issue is that several games might be played simultaneously and I don't want them to interrupt each other. How to manage them all?</p>
  
  <p>Could you guys give me a simple understanding of how to do it? Do I need to write two codes, one for the management (host) and another one for clients? Is it possible to test these kind of programs on localhost(xampp)?</p>
  
  <p>Also any simple codes will be appreciated.</p>
  
  <p>Thanks in advance.</p>