2

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.

2
  • 3
    php isn't really the ideal language for comet applications. Commented Sep 20, 2011 at 17:06
  • What would you use for the technology? Commented Sep 20, 2011 at 17:08

2 Answers 2

1

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?

Sign up to request clarification or add additional context in comments.

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.