Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/218469-communication-php-users/
Share on other sites

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.