streaming - How can I flash the latest messages given by users, among multiple users, using PHP, just like Twitter tweets works? -
how can flash latest messages given users, among multiple users, using php, twitter tweets?
you need use ajax 1 , shown in common page.
algo:
- send request server check if there updates in (for example) message_table.
- if there is, return newly added message. send none message if none , return step 1.
you can try reading http://en.wikipedia.org/wiki/comet_(programming) optimized way this. or if not, can traditional ajax polling.
Comments
Post a Comment