<legend id='5zPdx'><style id='5zPdx'><dir id='5zPdx'><q id='5zPdx'></q></dir></style></legend>
    <bdo id='5zPdx'></bdo><ul id='5zPdx'></ul>

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

      1. <tfoot id='5zPdx'></tfoot>

        <small id='5zPdx'></small><noframes id='5zPdx'>

        PHP:将数据从服务器推送到客户端的最佳方式......?

        PHP : Best way to push data from server to clients.....?(PHP:将数据从服务器推送到客户端的最佳方式......?)
        <tfoot id='8btCM'></tfoot>

              <small id='8btCM'></small><noframes id='8btCM'>

                  <tbody id='8btCM'></tbody>

                <legend id='8btCM'><style id='8btCM'><dir id='8btCM'><q id='8btCM'></q></dir></style></legend>
                  <bdo id='8btCM'></bdo><ul id='8btCM'></ul>
                  <i id='8btCM'><tr id='8btCM'><dt id='8btCM'><q id='8btCM'><span id='8btCM'><b id='8btCM'><form id='8btCM'><ins id='8btCM'></ins><ul id='8btCM'></ul><sub id='8btCM'></sub></form><legend id='8btCM'></legend><bdo id='8btCM'><pre id='8btCM'><center id='8btCM'></center></pre></bdo></b><th id='8btCM'></th></span></q></dt></tr></i><div id='8btCM'><tfoot id='8btCM'></tfoot><dl id='8btCM'><fieldset id='8btCM'></fieldset></dl></div>
                  本文介绍了PHP:将数据从服务器推送到客户端的最佳方式......?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在我的项目中 我需要像 facebook 那样将一些数据从服务器推送到客户端,当 在客户端配置文件中执行一些更新时 就像有人在客户端的墙上写东西一样,Facebook 会自动将其推送到客户端.

                  In my project I need to push some data from server to the client like facebook does, when some updates are performed in the clients profile like somebody writes something in the wall of the client, Facebook automatically push it to the client side.

                  目前我正在使用 AJAX 不断检查数据库的更新.那是不是一个好习惯.

                  我不想依赖客户端进行更新.我希望 服务器应该在执行与客户端相关的某些更新时自动将数据推送到客户端.

                  I don't want to depended on the client side for the updates. I want that the server should automatically push the data to the client side when some updates are performed related to the client.

                  请建议一些网址或示例代码来这样做......

                  Please suggest some url or sample code to do so......

                  提前致谢.....

                  推荐答案

                  你应该看看 APE 项目,它支持多种与 Push 尽可能接近的变体,比如长轮询、XHRStreaming 和 WebSockets.

                  You should take a look at the APE Project, which supports multiple variations that are as close to Push as you will get, like long-polling, XHRStreaming and WebSockets.

                  • http://www.ape-project.org/
                  • http://www.ape-project.org/wiki/index.php/Tutorial:Use_different_transport_method_(JSONP,_XHRStreaming)#Long_Polling

                  编辑仅在 PHP 中执行此操作并不是最佳选择,因为它会占用大量资源来保持所有这些连接的活动状态.

                  edit Doing this in just PHP is not the best choice, as it takes up a lot of resources to keep all those connections alive.

                  这篇关于PHP:将数据从服务器推送到客户端的最佳方式......?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Zend_Controller_Router_Exception: quot;xyzquot; is not specified(Zend_Controller_Router_Exception:“xyz;未指定)
                  Zend_Db_Table subquery(Zend_Db_Table 子查询)
                  pcntl_fork and the MySQL connection is gone(pcntl_fork 和 MySQL 连接消失了)
                  Change layout in the controller of Zend Framework 2.0(在 Zend Framework 2.0 的控制器中更改布局)
                  Zend Mail Gmail SMTP(Zend 邮件 Gmail SMTP)
                  Zend_Form: how to check 2 fields are identical(Zend_Form:如何检查 2 个字段是否相同)
                    <bdo id='HN1e1'></bdo><ul id='HN1e1'></ul>
                    <tfoot id='HN1e1'></tfoot>

                        <tbody id='HN1e1'></tbody>
                      <i id='HN1e1'><tr id='HN1e1'><dt id='HN1e1'><q id='HN1e1'><span id='HN1e1'><b id='HN1e1'><form id='HN1e1'><ins id='HN1e1'></ins><ul id='HN1e1'></ul><sub id='HN1e1'></sub></form><legend id='HN1e1'></legend><bdo id='HN1e1'><pre id='HN1e1'><center id='HN1e1'></center></pre></bdo></b><th id='HN1e1'></th></span></q></dt></tr></i><div id='HN1e1'><tfoot id='HN1e1'></tfoot><dl id='HN1e1'><fieldset id='HN1e1'></fieldset></dl></div>
                      <legend id='HN1e1'><style id='HN1e1'><dir id='HN1e1'><q id='HN1e1'></q></dir></style></legend>

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