How to implement MVC using pure Javascript?

How do I implement a chat system using PHP and Javascript?

  • It would help if you can suggest decent existing libraries or open source projects that i can just use. I am also open to implementing it using node.js

  • Answer:

    You can use redis' pub/sub as a bridge between clients. Php has an awesome redis client in Predis.

Jan Michael Tan at Quora Visit the source

Was this solution helpful to you?

Other answers

node.js would fit better for developing a chat system than PHP. node is especially good with building network applications. this is because node's non-blocking I/O. Check http://socket.io/, you can find a complete exmaple here: https://github.com/amirrajan/nodejs-chat. Using node.js based chat server will allow you working on the client and the server application with the same language. If you're thinking going with PHP anyway, check this project http://reactphp.org/, provides non-blocking I/O for PHP.

Igal Alkon

For Node.js, there is http://socketcluster.io

Jonathan Gros-Dubois

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.