开发者

contents of page reload when any user post data in database in php

开发者 https://www.devze.com 2022-12-14 08:01 出处:网络
I have developing messenger in php. In my application in need to reload the content of div in a page while any user post 开发者_如何学Gotheir comments on database of server.

I have developing messenger in php. In my application in need to reload the content of div in a page while any user post 开发者_如何学Gotheir comments on database of server. Please kindly help me... Thanks in Advance Mayan Alagar.


Here a couple of questions/answers that might give you some informations, to start with :

  • Comet & PHP: How to use Comet with a PHP Chat System ?
  • Using comet with PHP?
  • Implementing PHP chat in members site
  • Ajax polling.
  • How to make a chat room script with PHP?

Basically, you'll have to put some long-polling mecanism (search for "comet"), to be able to send notifications and new informations from the server to the browser -- while things are generally going the other way arround.


Use Comet (or reverse AJAX or push AJAX)

0

精彩评论

暂无评论...
验证码 换一张
取 消