douweibeng5219 2011-06-20 10:50
浏览 196
已采纳

运行phpwebsocket服务器.php

I am playing around with phpwebsocket. I got the code from http://code.google.com/p/phpwebsocket/. the implementation is that I have to run the server.php using command line which starts the socket linstening on a port. but I am wondering if I upload the script to my blog server(one.com), how can I start the server.php without command line?

thanks for any tips.

  • 写回答

2条回答

  • dseslyh6662605 2011-06-20 12:00
    关注

    Starting it on the command-line is the appropriate mechanism.

    You could run it through a webserver, but only by hacking around with the default lifetime of scripts, and it's not how PHP server scripts are designed to be run.

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

报告相同问题?

悬赏问题

  • ¥100 求数学坐标画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站