• <small id='mCe96'></small><noframes id='mCe96'>

  • <legend id='mCe96'><style id='mCe96'><dir id='mCe96'><q id='mCe96'></q></dir></style></legend>

      1. <i id='mCe96'><tr id='mCe96'><dt id='mCe96'><q id='mCe96'><span id='mCe96'><b id='mCe96'><form id='mCe96'><ins id='mCe96'></ins><ul id='mCe96'></ul><sub id='mCe96'></sub></form><legend id='mCe96'></legend><bdo id='mCe96'><pre id='mCe96'><center id='mCe96'></center></pre></bdo></b><th id='mCe96'></th></span></q></dt></tr></i><div id='mCe96'><tfoot id='mCe96'></tfoot><dl id='mCe96'><fieldset id='mCe96'></fieldset></dl></div>
        • <bdo id='mCe96'></bdo><ul id='mCe96'></ul>
        <tfoot id='mCe96'></tfoot>
      2. 在 Socket.io 中使用 PHP

        Using PHP with Socket.io(在 Socket.io 中使用 PHP)
      3. <i id='DTIP8'><tr id='DTIP8'><dt id='DTIP8'><q id='DTIP8'><span id='DTIP8'><b id='DTIP8'><form id='DTIP8'><ins id='DTIP8'></ins><ul id='DTIP8'></ul><sub id='DTIP8'></sub></form><legend id='DTIP8'></legend><bdo id='DTIP8'><pre id='DTIP8'><center id='DTIP8'></center></pre></bdo></b><th id='DTIP8'></th></span></q></dt></tr></i><div id='DTIP8'><tfoot id='DTIP8'></tfoot><dl id='DTIP8'><fieldset id='DTIP8'></fieldset></dl></div>

              <bdo id='DTIP8'></bdo><ul id='DTIP8'></ul>

                  <tbody id='DTIP8'></tbody>
              • <legend id='DTIP8'><style id='DTIP8'><dir id='DTIP8'><q id='DTIP8'></q></dir></style></legend>

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

                  <tfoot id='DTIP8'></tfoot>
                  本文介绍了在 Socket.io 中使用 PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  是否可以在客户端使用 Sockets.io 并与服务器上基于 PHP 的应用程序进行通信?PHP 甚至支持这种长期连接"的代码编写方式吗?

                  Is it possible to use Sockets.io on the client side and communicate with a PHP based application on the server? Does PHP even support such a 'long-lived connection' way of writing code?

                  我为 socket.io 找到的所有示例代码似乎都用于服务器端的 node.js,所以没有帮助.

                  All the sample code I find for socket.io seems to be for node.js on the server side, so no help there.

                  推荐答案

                  回答这个问题可能有点晚了,但这是我的发现.

                  It may be a little late for this question to be answered, but here is what I found.

                  我不想争论节点是否比 php 做得更好,这不是重点.

                  I don't want to debate on the fact that nodes does that better than php or not, this is not the point.

                  解决方案是:我没有找到任何用于 PHP 的 socket.io 实现.

                  The solution is : I haven't found any implementation of socket.io for PHP.

                  但是有一些方法可以实现 WebSockets.有 这个 jQuery 插件 允许您使用 Websockets 同时优雅地降级非支持浏览器.在 PHP 方面,有这个类,它似乎是 PHP WS 使用最广泛的服务器.

                  But there are some ways to implement WebSockets. There is this jQuery plugin allowing you to use Websockets while gracefully degrading for non-supporting browsers. On the PHP side, there is this class which seems to be the most widely used for PHP WS servers.

                  这篇关于在 Socket.io 中使用 PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 的问题)

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

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

                        1. <legend id='MQXsh'><style id='MQXsh'><dir id='MQXsh'><q id='MQXsh'></q></dir></style></legend>

                            <tbody id='MQXsh'></tbody>