refresh the webpage on database update(刷新有关数据库更新的网页)
问题描述
我想在网页上反映数据库表中立即发生的更改.我一直在阅读有关 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
这篇关于刷新有关数据库更新的网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:刷新有关数据库更新的网页
基础教程推荐
- PHP 类:全局变量作为类中的属性 2021-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 如何替换eregi() 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
