douou9786 2012-04-10 09:07
浏览 44
已采纳

在不运行守护程序的情况下设置Websocket服务器

This might look like a simple question, but it's boggling my mind: Assume I can't run Daemons, how would I set up a websocket server?

(Details: Apache 2.2.21, PHP 5.3.9, so preferably with PHP)

  • 写回答

3条回答 默认 最新

  • dongxing1965 2012-04-10 11:59
    关注

    By not wanting daemons I assume you are asking for something that runs in Apache/PHP rather than as a standalone program/server that you have to run.

    Note that PHP does not yet have a good option that support the old Hixie WebSocket protocol and the newer HyBi/IETF protocol at the same time (most other languages have a server that supports both).

    If you are willing to consider non-PHP options, these projects can be integrated into Apache and support both revisions of the protocol:

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?