<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的通知系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                Appending GET parameters to URL from lt;formgt; action(将 GET 参数附加到来自 lt;formgt; 的 URL行动)
                Forcing quot;Save Asquot; dialog via jQuery GET(强制“另存为通过 jQuery GET 对话框)
                PHP - get certain word from string(PHP - 从字符串中获取某个单词)
                How to debug a get request in php using curl(如何使用 curl 在 php 中调试 get 请求)
                get a # from a url in php(从 php 中的 url 获取 #)
                PHP - include() file not working when variables are put in url?(PHP - 将变量放入 url 时,include() 文件不起作用?)

                  <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>