You want to implement a multiplayer game, so you should use a client-server architecture for it . Set up a single, consistent server process, . "" PHP , .
, Room : . - ( ) , .
, , ( ). . , - .
:. , PHP. PHP, , . , 5 , . -. PHP, . , . . , - , .
2:. , , , :
:
php . - , php script , . ( , ), , . . . ( ) , .
concurrency? , , : script . , , , . , -, , -.