如何在我的Php页面上实现实时通知
问题描述:
This Is My Home.Php ,I Need To Display Realtime Notification From Database
<html>
<body>
<label>Notifications <?php echo "(".$notification.")"; ?>)</label>
//$notification Contain no. of Notifications From Database
</body>
</html>
答
You need to use web socket
for real time notification. You can try Ratchet
or socket.io
.