Coded Games
Member
Hey guys. So I'm working on a HTML5 card game and a lot of people requested that I try to add an online mode to the game. Since it's just a card game I don't need the online to run fast so I thought that the http_* functions might work.
Unfortunately this is the first time I've ever used these functions and I'm not entirely sure what I need to setup to get them working. All I really need to do is have to a client send a string representing the card they would to play to another client and repeat that back and forth a few times.
I see how http_get works but I'm a bit confused with http_post_string, do I need to do something with my website to get it working? If someone has any experience using these features in their game any advice would be greatly appreciated.
Unfortunately this is the first time I've ever used these functions and I'm not entirely sure what I need to setup to get them working. All I really need to do is have to a client send a string representing the card they would to play to another client and repeat that back and forth a few times.
I see how http_get works but I'm a bit confused with http_post_string, do I need to do something with my website to get it working? If someone has any experience using these features in their game any advice would be greatly appreciated.