views:

86

answers:

1

How to create simple PHP COMET server page displaying current time? I need code implementation (because it should be trivial) - not theory or just links to library sites. Simple text line conteining corrent time and updating each second.

A: 

I'll recommend reading here the section "Comet with classic AJAX". It contains a succinct PHP implementation, and a Javascript client side code using prototype.js.

Elazar Leibovich