Simple comet example using php and jquery

前端 未结 7 1321
一个人的身影
一个人的身影 2020-12-01 02:17

Can anyone give me a good and simple example of the comet technique using PHP?

I just need an example that uses a persistent HTTP connection or something similar. I

7条回答
  •  遥遥无期
    2020-12-01 02:30

    I have a very simple example here that can get you started with comet. 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/

    A working example (simple chat) can be found here:
    http://cheetah.jamieisaacs.com/

提交回复
热议问题