- Home /
Design - Web Player Facebook app with Godaddy hosting and MySQL
I'm a web app noob, but am fluent in C++ / C#.
I have a Facebook app I'm crating that uses the Web Player and interfaces with MySQL on my Godaddy hosted domain. I'm able to retrieve login info and scores from the DB into the Unity app just fine.
My next step is to let users choose someone to battle and let other users vote on who should win.
I need to know what I need to do to have the server somehow track the battle and resolve the winner when the time expires. Do I just write a php script that perpetually runs on the Godaddy hosted server somehow? I don't want to have some C# app running on my PC at home that manages it. Surely there's some way to do it server side.
Thanks!
Answer by DaveA · Feb 28, 2012 at 02:14 AM
I would think your app would send updates via WWW to your server scripts to inform it of such things. You can track all that in the DB. If it's really single player (no peer-to-peer networking), that's it. If multiplayer, you might consider a headless server, or contracting a server-service that does run such things for you. I've never used them, don't even know their names, surely someone here does. In any case, then you'd probably do both: networking Unity style and WWW to your DB.
It is multiplayer, so I think I have to make a php script that runs at 5 $$anonymous$$ute intervals via a cron job to handle the battles.
Your answer
Follow this Question
Related Questions
In unity web player, how i can connect to mysql server by php? 1 Answer
Unity php functions 1 Answer
Web Player and database 1 Answer
help to call noramlisd database to unity 0 Answers