Reputation: 39
I'm trying to make a whatsapp like chat app, where I want a server to receive requests. I am thinking of making php server page. Would it be the right choice? or should i look for some cloud computing servers? Please convey some opinion..
Upvotes: 2
Views: 1183
Reputation: 11
If you are creating a chat app like Whatsapp, use the following server that would help to build more easily.
Yaws - An Erlang-based web server that can also run as a standalone web server
Lighttpd - Another web server that is highly secure, swift, flexible and compliant with web server standards.
Upvotes: 1
Reputation: 2160
You should have a look at socket.io, which is a websocket package for nodejs. In its documentation there is a chat server example. http://socket.io/get-started/chat/
Upvotes: 2
Reputation: 991
I would recommend you to use NodeJs in this case. Node has a asynchronous nature, so its the best thing to use for chat apps. Its also a lot faster than PhP in most use cases. Another thing to consider is that NodeJS hosting is pretty cheap. In fact, you can use OpenShift and start testing your app for free in a redhat server.
If you wanna know more about nodejs: http://www.nodejs.org More on Openshift: openshift.redhat.com
Upvotes: 1