How to implement a real fast web chat with PHP?

前端 未结 3 1528
面向向阳花
面向向阳花 2021-01-01 00:32

How to implement a real fast web chat with PHP?

Has anybody ever wonder why Facebook chat is just so really really fast? even in IE without WebSocket.

Isn\'t

3条回答
  •  遥遥无期
    2021-01-01 00:52

    I agree with @joseph-szymborski although it would make sense to start looking at WebSocket solutions which fallback to WebSockets via Flash and/or long-polling.

    Here are some relevant SO questions:

    • How to implement facebook like notification on cakephp? - PHP/jQuery
    • ajax Push system - PHP/Ajax
    • Apache with Comet Support - the question itself is very good.
    • PHP Jquery: chat system, what is the Ideal framework for this? - relevant to your question.

    If you want to work with PHP or are on shared hosting then I'd recommend looking at a hosted realtime web solution.

提交回复
热议问题