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:

  1. send request server check if there updates in (for example) message_table.
  2. 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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -