Web Chat Application using Long-Polling Technology with PHP,MySQL and jQuery [closed]

南楼画角 提交于 2019-12-03 17:22:21

jQuery Long Polling

This is possible by jQuery/PHP/MySQL with long polling. A sample implementation available in this url: http://sugunan.com/sites/chat/chatterFront.html

Open this in two different browser or machines. And provide the name and start the chat.

The source code of this chat tool can be downloadable at this url: http://www.sugunan.com/sites/chat/source.zip

Node.js

If you are owning the server you can go for node.js faye based implementation: http://faye.jcoglan.com/node.html

This is a push notification technology. So it wont ping the server frequently. But it will deliver the message instantly. It can be integrated with PHP if you want to persist the message on server.

Yes, there are some ways,
They are called comet, sometimes reverse ajax, google it ;)

on a shared hosting use long polling,
on dedicated host or VPS use sockets.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!