Ali
Ali

Reputation: 267049

How to implement Server push / long polling / comet using PHP and Javascript

How can I implement the comet / server push design pattern using PHP and Javascript? Essentially what I would like is something like this:

How can I do this? Any links/info please?

Upvotes: 2

Views: 10046

Answers (3)

Jerod Venema
Jerod Venema

Reputation: 44632

Comet with PHP has some tricky issues with scaling. An alternative would be a SaaS solution, such as WebSync On-Demand. (Disclaimer: I work there). That way you don't have to worry about any of the behind the scenes stuff, and you can just get your server-push functionality.

Upvotes: 2

ConsultUtah
ConsultUtah

Reputation: 6809

There are a couple of very good examples at: How to implement comet with PHP

Upvotes: 1

Agent_9191
Agent_9191

Reputation: 7253

Most of the services use the Client-initiated requests, but there's also Comet. There's a few articles out there on it.

Upvotes: 0

Related Questions