如何在我的Php页面上实现实时通知?


How Can I Implement Realtime Notification On My Php Page

This Is My Home.Php,我需要显示来自数据库的实时通知

<html>
<body>
<label>Notifications <?php echo "(".$notification.")"; ?>)</label>
//$notification Contain no. of Notifications From Database
</body>
</html>

您需要使用web socket进行实时通知。您可以尝试Ratchetsocket.io