- Home /
Network class vs php for authoritative actions?
I am making a game that requires a great deal of calculations to be done on the server to then communicate with a mysql database. I do not know much about the network class and was wondering if i should use It for this or just use the WWW class to communicate with php?
I guess your question title has a typo,
Network class vs WWW ...
I didn't know if the 2 were supposed to be used together or if they were entirely seperate sorry.
Answer by Fattie · Jun 23, 2012 at 08:58 PM
My vote, definiltely use WWW. Certainly, at first !
Never fuss about communication layers, just improve them aferwards if necessary.
I love just using simple, stateless URL calls for server side stuffs. Why write a whole realtime server unless it's profoundly necessary?
Be sure to get https set up on your domain.
Ok so how it would work is i would use www to send a variable to php, then the php would take care of the rest of the math and send the result back to the www class right?
that is utterly correct, yes. 100% correct. But could you pleae THU$$anonymous$$B or TIC$$anonymous$$ useful answers, to keep the site tidy. and if possible just use the one screen name !
Woah i didnt realize i could do that yet iv tried it before and it wouldnt let me. Ill start doin it now that i can do it thanks man.
Your answer
Follow this Question
Related Questions
WWW.texture provides a :"?" texture... 1 Answer
How to get different variables from PHP page ? (example included)... 1 Answer
`Recv failure: Connection was reset` In editor? (platform set to Android NOT WebPlayer) 0 Answers
PHP Connect to Unity Server and send an RPC 2 Answers
How to debug php code when use www to communicate with server side. 0 Answers