本文介紹了刷新有關數據庫更新的網頁的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我想在網頁上反映數據庫表中立即發生的更改.我一直在閱讀有關 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
這篇關于刷新有關數據庫更新的網頁的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!