markbcn Posted November 12, 2010 Share Posted November 12, 2010 Hello, I have a question regarding design so I thought this was the correct place to ask I have a web that contains rooms (each room one .php). Users can login to the web and then enter a room. Inside the room I have an embbeded flash (a minigame). Now, I would like that two players in the same room, can play that minigame against each other, so my question is: how can I do the communication between both users? extra-info: my idea is that each time a user does an action, the new situation is saved in the database, then sends some kind of signal to the other user, that one receives the signal, refreshes the flash (which loads the new situation) and does his turn. I really need help on this, really Thanks in advance so much. Quote Link to comment https://forums.phpfreaks.com/topic/218469-communication-php-users/ Share on other sites More sharing options...
s0c0 Posted November 12, 2010 Share Posted November 12, 2010 The traditional approach would have been to have the client continually poll the server looking for updates. There are new ways where the server can tell the client there has been an update such as http://www.ape-project.org/ and many many others. Quote Link to comment https://forums.phpfreaks.com/topic/218469-communication-php-users/#findComment-1133531 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.