<tfoot id='Mf8BX'></tfoot>

  1. <i id='Mf8BX'><tr id='Mf8BX'><dt id='Mf8BX'><q id='Mf8BX'><span id='Mf8BX'><b id='Mf8BX'><form id='Mf8BX'><ins id='Mf8BX'></ins><ul id='Mf8BX'></ul><sub id='Mf8BX'></sub></form><legend id='Mf8BX'></legend><bdo id='Mf8BX'><pre id='Mf8BX'><center id='Mf8BX'></center></pre></bdo></b><th id='Mf8BX'></th></span></q></dt></tr></i><div id='Mf8BX'><tfoot id='Mf8BX'></tfoot><dl id='Mf8BX'><fieldset id='Mf8BX'></fieldset></dl></div>

      <bdo id='Mf8BX'></bdo><ul id='Mf8BX'></ul>
  2. <legend id='Mf8BX'><style id='Mf8BX'><dir id='Mf8BX'><q id='Mf8BX'></q></dir></style></legend>

    1. <small id='Mf8BX'></small><noframes id='Mf8BX'>

      php中类似facebook的通知系统

      A facebook-like-notification system in php(php中类似facebook的通知系统)
          • <bdo id='2OyVA'></bdo><ul id='2OyVA'></ul>
            <i id='2OyVA'><tr id='2OyVA'><dt id='2OyVA'><q id='2OyVA'><span id='2OyVA'><b id='2OyVA'><form id='2OyVA'><ins id='2OyVA'></ins><ul id='2OyVA'></ul><sub id='2OyVA'></sub></form><legend id='2OyVA'></legend><bdo id='2OyVA'><pre id='2OyVA'><center id='2OyVA'></center></pre></bdo></b><th id='2OyVA'></th></span></q></dt></tr></i><div id='2OyVA'><tfoot id='2OyVA'></tfoot><dl id='2OyVA'><fieldset id='2OyVA'></fieldset></dl></div>
              <tbody id='2OyVA'></tbody>

            <tfoot id='2OyVA'></tfoot>

            <legend id='2OyVA'><style id='2OyVA'><dir id='2OyVA'><q id='2OyVA'></q></dir></style></legend>

              <small id='2OyVA'></small><noframes id='2OyVA'>

              • 本文介绍了php中类似facebook的通知系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我怎样才能建立一个类似 facebook 的通知系统:- 用户 A 向用户 B 写一条消息- 数据库上的侦听器将消息路由到 userB- 在userB界面,消息立即出现

                How can I put in place a facebook-like-notification system: - A userA writes a message to the userB - A listener on the database routes the message to the userB - On the userB interface, the message appears instantly

                我怎样才能在 php 中做到这一点?

                How can I do that in php?

                非常感谢,

                问候

                推荐答案

                我不建议使用轮询或尝试使用 PHP 实现基于推送的解决方案,如果您将有任何可观的流量.发生的情况是,最终所有 PHP 进程都被阻止,然后您就无法再处理 Web 请求.

                I wouldn't advise using either polling or trying to implement a push based solution using PHP, if you are going to have any sizable traffic. What happens is that eventually all the PHP processes get blocked, and then you can't serve anymore web requests.

                查看 node.js、cometd 或其他基于推送的解决方案.如果您需要一些简单的东西并且需要快速启动和运行,我建议您使用 http://pusherapp.com/.他们有可用的 PHP 客户端和超级简单的 API.

                Look into node.js, cometd or another push based solution. If you need something simple and need to get up and running quickly, I'd recommend http://pusherapp.com/. They have a PHP client available and super simple API.

                这篇关于php中类似facebook的通知系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                  <tbody id='Az37B'></tbody>
                  <legend id='Az37B'><style id='Az37B'><dir id='Az37B'><q id='Az37B'></q></dir></style></legend>
                    <bdo id='Az37B'></bdo><ul id='Az37B'></ul>

                      <small id='Az37B'></small><noframes id='Az37B'>

                        1. <i id='Az37B'><tr id='Az37B'><dt id='Az37B'><q id='Az37B'><span id='Az37B'><b id='Az37B'><form id='Az37B'><ins id='Az37B'></ins><ul id='Az37B'></ul><sub id='Az37B'></sub></form><legend id='Az37B'></legend><bdo id='Az37B'><pre id='Az37B'><center id='Az37B'></center></pre></bdo></b><th id='Az37B'></th></span></q></dt></tr></i><div id='Az37B'><tfoot id='Az37B'></tfoot><dl id='Az37B'><fieldset id='Az37B'></fieldset></dl></div>
                          <tfoot id='Az37B'></tfoot>