Bluehost上的PHP Websocket [英] PHP Websocket on Bluehost

查看:88
本文介绍了Bluehost上的PHP Websocket的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从 Chat-设置基于Websocket的PHP聊天应用程序在域XYZ.ABC.com上的 Bluehost 上使用-WebSocket和PHP-Socket 。 / p>

我在server.php&中将$ host都更改为XYZ.ABC.com。 index.php。



我找不到一种方法来调用&使server.php保持活动状态。



还有其他方法可以做到这一点吗?

解决方案

如果您具有Shell访问权限,则需要使用$

$运行脚本b
$ b

  nohup< command> & 

然后它将在后台运行,并且如果您离开外壳,则不会停止。



如果您没有SSH访问权限,则没有机会使其保持活动状态。
然后寻找具有SSH访问权限的廉价虚拟服务器或rootserver。


I am trying to setup Websocket based PHP chat application from Chat-Using-WebSocket-and-PHP-Socket on Bluehost on domain XYZ.ABC.com.

I have changed $host to XYZ.ABC.com both in server.php & index.php.

I am not able find a way to invoke & keep server.php alive.

Is any other way to get this done? even switching hosing provider works for me.

解决方案

If you have shell access you need to run the script with

nohup <command> &

It will then run in background and not stop if you leave the shell.

If you don't have SSH access there is no chance in keeping it alive. Look for a cheap vserver or rootserver with SSH access then.

这篇关于Bluehost上的PHP Websocket的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆