Question

Hay guys, I'm looking into reading about 'push' technology, but i think i may have heard about it in the wrong way. Is there are interesting things i should know about it? How can it be done in PHP? Can it be done in PHP? What's the general idea behind push?

Thanks

Was it helpful?

Solution

You need to take a look at these http://en.wikipedia.org/wiki/Comet_(programming)

http://www.zeitoun.net/articles/comet_and_php/start

Comet is a programming technique that enables web servers to send data to the client without having any need for the client to request it. This technique will produce more responsive applications than classic AJAX. In classic AJAX applications, web browser (client) cannot be notified in real time that the server data model has changed. The user must create a request (for example by clicking on a link) or a periodic AJAX request must happen in order to get new data fro the server.

OTHER TIPS

It can sorta be done in PHP, but there are some issues with scaling. If scaling doesn't matter too much, then you can create a pseudo-comet client by simply having a page that doesn't return immediately.

If you're looking for something that scales a bit better, you'll either have to get a full comet server, or go with a SaaS solution (like WebSync On-Demand - disclaimer, I work there).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top