We are trying to make a 4 player online game using PHP/my Sql.(the players are required to login simultaneoulsy).Now we have to take the input from the form of each player,process it and then update the forms accordingly.For example..after a certain sequence of events the the week number is incremented for all 4 players.Now all the 4 forms for each player should show the correct week number. How do we exactly do this.
any help would be appreciated .
thanks
help needed
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
if I understand you correctly.. it's kind of a pain with PHP alone. Each player will have their own script that must either run infinitely until they log out or you need the page to refresh every few seconds or minute.
A realtime interface such as Java or Flash would handle such things a bit easier. There's XMLHTTPRequest as well..
A realtime interface such as Java or Flash would handle such things a bit easier. There's XMLHTTPRequest as well..