PHP recieving live input from the user
Posted: Fri Sep 12, 2008 1:19 pm
I am not sure if this post should be here but its more here than PHP Theory, anyway a friend and i are planning on making a web based game in PHP and i am in charge of user input and graphic generation. I have created a solution for the user input which i will display below:
Browser:
AJAX Request every second
If user sent input then send input to server
Server:
If input received take action
Send data
Browser:
If data received then display
What i really want is this:
Browser:
If user presses button send to server
Server:
If input received take action
Send data
Browser:
If data is received display
Its nearly the same but without ajax is this possible
Browser:
AJAX Request every second
If user sent input then send input to server
Server:
If input received take action
Send data
Browser:
If data received then display
What i really want is this:
Browser:
If user presses button send to server
Server:
If input received take action
Send data
Browser:
If data is received display
Its nearly the same but without ajax is this possible