====== How to implement COMET with PHP ====== [[http://en.wikipedia.org/wiki/Comet_(programming)|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. I will now explain how to implement Comet with PHP programming language. I will demonstrate it on two demos which uses two techniques: the [[http://kerphi.zeitoun.net/articles/comet_and_php/comet-iframe/|first one]] is based on hidden "
==== Download it ==== Here is the {{comet-ajax.tar.gz|tar.gz archive}} of this demo. ==== Online demo ==== Here is the [[http://kerphi.zeitoun.net/articles/comet_and_php/comet-ajax/|online demo]]. ~~DISCUSSION~~ {{tag>article informatique comet ajax php javascript}}