Using comet with PHP?

后端 未结 11 1541
星月不相逢
星月不相逢 2020-11-22 03:09

I was thinking of implementing real time chat using a PHP backend, but I ran across this comment on a site discussing comet:

My understanding is that

11条回答
  •  無奈伤痛
    2020-11-22 04:02

    You could use Nginx and JavaScript to implement a Comet based chat system that is very scalable with little memory or CPU utilization.

    I have a very simple example here that can get you started. It covers compiling Nginx with the NHPM module and includes code for simple publisher/subscriber roles in jQuery, PHP, and Bash.

    http://blog.jamieisaacs.com/2010/08/27/comet-with-nginx-and-jquery/

提交回复
热议问题