PHP recieving live input from the user

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
SteelSlasher
Forum Newbie
Posts: 5
Joined: Fri Sep 12, 2008 12:54 pm

PHP recieving live input from the user

Post by SteelSlasher »

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
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

Re: PHP recieving live input from the user

Post by yacahuma »

Wouldn't it be better to use flash for this?
SteelSlasher
Forum Newbie
Posts: 5
Joined: Fri Sep 12, 2008 12:54 pm

Re: PHP recieving live input from the user

Post by SteelSlasher »

yacahuma wrote:Wouldn't it be better to use flash for this?
:( but i dont want to learn flash,

Maybe a compiled client using windows api will work and a php based server using some optimiser to keep lag down
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

Re: PHP recieving live input from the user

Post by yacahuma »

I dont know flash either , but you have to choose the right tool. If you are going to have a screen with things moving, I dont think you want to go that route.
BETA
Forum Commoner
Posts: 47
Joined: Fri Jul 25, 2008 3:21 am

Re: PHP recieving live input from the user

Post by BETA »

well flash is actually not that hard... the only thing i dont like about it is that it's not free :mrgreen:
Aric_Holland
Forum Newbie
Posts: 5
Joined: Sat Aug 09, 2008 6:23 pm
Location: Maui, HI

Re: PHP recieving live input from the user

Post by Aric_Holland »

Java, & Pulpcore.

http://www.interactivepulp.com

Pulpcore is an interactive 2d rendering framework, its bringing applets back. You should check it out, I have written two projects using the API and the framework and can say its great.
Post Reply