Jenan
Jenan

Reputation: 3320

PHP - jQuery - Comet chat

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 am looking for a solution for non-commercial use - for free.

Upvotes: 2

Views: 1584

Answers (2)

Ilia Choly
Ilia Choly

Reputation: 18557

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.

Upvotes: 0

Brandon J. Boone
Brandon J. Boone

Reputation: 16472

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?

Upvotes: 1

Related Questions