Welcome to Qi-U Community for programmer and developer-Open, Learning and Share

Categories

0 votes
254 views
in Technique[技术] by (31.9m points)

websocket结合php做数据实时展示页面

前端页面和服务器建立长连接以后,PHP怎么监控数据库发生变化进而给前端推送数据呢?求教


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

1 Answer

0 votes
by (31.9m points)

你可以在更新数据库的接口或者方法埋个点,一旦更新数据,就把更新的数据推过去不就行了吗


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Qi-U Community for programmer and developer-Open, Learning and Share
...