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?
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)?
Also any simple codes will be appreciated.
Thanks in advance.