开发者

PHP - jQuery - Comet chat

开发者 https://www.devze.com 2023-04-06 09:30 出处:网络
I am looking for a solution for PHP and comet. I would like to make a chat using Ajax to send the message. I call the function using jQuery and send data, it is simple.

I am looking for a solution for PHP and comet. I would like to make a chat using Ajax to send the message. I call the function using jQuery and send data, it is simple.

But the problem is in retrieving new messages. How to retrieve messages using the new solution comet? I need a simple example. I a开发者_如何学JAVAm looking for a solution for non-commercial use - for free.


In short, I would tell you to use Node.js as your backend technology.

Here's a more lengthy explanation: Creating a live checkers-like web app with PHP, JS, CSS and HTML?


if you're set on using php, you can use a comet server which will sit on top of apache (or whatever server you prefer) and proxy any non-comet requests to it. I've used one called streamhub which is written in java.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号