本文介绍了刷新有关数据库更新的网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在网页上反映数据库表中立即发生的更改.我一直在阅读有关 websockets 的内容,但我不太清楚如何实现它.我想知道如何才能提取已添加到表中的新信息,以及如何让服务器将其推送到浏览器.
I want to reflect the changes that occur immediately in the table in a database, on the webpage. I have been reading about websockets but I am not very clear about how to implement it. I was wondering that how could I be able to extract that new information is has been added to the table and how do I let the server push it towards the browser.
推荐答案
您也可以尝试使用 Comet 应用程序,即 longpollig - http://www.zeitoun.net/articles/comet_and_php/start
You could also try a comet application i.e. longpollig - http://www.zeitoun.net/articles/comet_and_php/start
这篇关于刷新有关数据库更新的网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!