Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
379 views
in Technique[技术] by (71.8m points)

javascript - Comet & PHP: How to use Comet with a PHP Chat System?

I have to build a simple chat system in PHP using Comet.

I don't know what would be the best approach to this project.

What is the best technique (cross-browser would be nice) to use, and how to implement it? What libraries can I use that already have comet support. (I don't want to use the Bayeux Protocol)

I already have a PHP backend running for the chat system, but I need some ideas for the interaction between client and server.

Thank you all in advance. My regards.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

chart & Long point-by-point discussion

Unfortunately, there's no information for PHP in there, though you could potentially wrap your existing back-end with a comet server on some other platform.

There is a similar SO question about this, looks like FastCGI is your best bet.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...