- Home /
Do I have to learn SQL and/or PHP?
Hi I have been hearing lots of talk about SQL and PHP. And I am bout to start learning the basics of networking. But before I do, I want to know what all I have to learn so I dont waste my time learning something I wont be using. I have browsed through the unity networking referance guide and I dont see anything that talks about SQL or PHP. So do I need to know any one of these to make a networked multiplayer game with more than one client that also has chat and high score features?
Thanks..
Check out the PHP example on the wiki. It was designed to be a complement to the docs for WWWForm.
Answer by uhahaha · Dec 17, 2010 at 01:38 AM
I think you need to have at least rudimentary knowledge on PHP mySQL to make games with chat and high score features, unless you use some canned packages with these features. Google for PHP-mySQL tutorials, you will get tons of free setp by step tutorials.
Answer by Tseng · Apr 14, 2012 at 01:47 AM
It depends on what you are doing.
If you only need simple stuff as login, sending highscores etc. then PHP + MySQL is the right choice and you have to learn it.
If you make a multiplayer game, then you won't use PHP + MySQL, but instead program a server. There are stuff like Photon etc. which bring the basic server structure and you can extend it with scripts. If it doesn't suit you, you have to make a server from scratch in C#, Java, C++, whatever suits you.
Because PHP + MySQL is only good if you send simple data and in text format. For a multiplayer game want the data to be binary and not text (less traffic, easier to convert back into data and less CPU intensive than parsing a text file).
Your answer
Follow this Question
Related Questions
Is it possible to create GameObjects dinamically from a server? 1 Answer
PHP Calls dont work on mobile 0 Answers
SQL Query SET Statement issue with nested Statements in PHP 2 Answers
My code to php -> sql in PC good, in Android not work. plese fast 1 Answer
Why is my PHP echo returning entire PHP file after WWW request? 1 Answer