Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm supposed to write a PHP backend that handles a multiplayer game for Android and iOS where users from both platforms to be able to play together.
I'm new to sockets in PHP, and couldn't find any case where a PHP backend was used to handle this type of services, the question is, if it's not PHP that we need then what? what server handle these types of games?
This type of use case falls right into the sweet spot for node js because of its impressive abilities to handle sockets and concurrency. If it is possible to switch over to node I strongly recommend it. If you're stuck with php your options are pretty limitted. Two of them are Ratchet and PHPdaemon
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I would like my users to able to chat with one another.
I currently use angularjs as the front-end and PHP in the back-end.
any ideas?
You should be looking at different languages for this. Node.js, MongoDB and Redis is a good start.
Also, just expecting people to give you code with such a vague request is not really in line with the spirit of things here. There are plenty of good examples online and a simple Google search would give you results like this https://github.com/joni2back/spachat if you're really keen on using PHP and Angular.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I created an app with PhoneGap but I need to load some stuff from another domain. I tried jQuery load with a xdomainload plugin but It did not work.
The stuff I need to show run on PHP as the back-end language. I'm really noob - I've seen a few tutorials about JSON but all of them did not work and I ended giving up. Is JSON the easiest way?
Thank you all
Generally speaking, PHP wont run client-side in Cordova. If you're trying to access some sort of backend service that you built using PHP, then that's doable with JSON. Whether it's "the easiest", makes this question to open for interpretation. Generally speaking, a common approach may be to use javascript to communicate with backend services which "talk" JSON between each other. This question might get closed for being to opinion based. But that's my 2 cents.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm very confused about how to do a game work in a browser like monopoly, backgammon, etc. I have knowledge in html, css, php, and my question is what should I start to study/learn to make a game play with anothers on the web, I think what I should start to learn is AJAX, but what else? How can I do the game? How should I arrange the mysql database info for the game... any tips is appreciated. Thanks.
A basic requirement would certainly be Javascript. That's what the "J" in AJAX actually means. You basically need two things: the client-side code dealing with the user input, sending requests to the server, dealing with the responses, managing all the graphics; and the server-side system handling requests triggered by the client code and providing adequate responses. How you should "do the game" and "arrange" the MySQL database strictly depends on the game you want to create. Of course your request is too generic to be able to provide you any meaningful help.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
So there are websites that use dynamic web pages and use PHP for this. Also websites need to use SQL to run information in their server databases.
How would an iOS app do this? Through the same type of programming (PHP&SQL)?
I'm a student only looking to learn. Thanks!
This should get you started - https://developer.apple.com/library/ios/navigation/#section=Resource%20Types&topic=Getting%20Started
And once you have had a look around in the above link, have a read of this https://developer.apple.com/technologies/ios/
Lastly if you want to really go creative and social check out the iOS SDK for Facebook and start making cool apps - https://developers.facebook.com/docs/ios/ios-sdk-tutorial/
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to create a chatbox like gmail or facebook. What would be the best architecture to build it. Should It be good to use sockets or ajax?
If so, then would you please describe or give references of the architecture.
I'd suggest XMPP. I used it to design a chat system for within my companies software, and it worked quite well. There are plenty of XMPP libraries out there. If you were so inclined though, it it possible to use some of Google's services. Not everything needs to be written from scratch:
https://developers.google.com/talk/open_communications