PHP脚本Bluehost Websocket服务器 [英] php script Bluehost Websocket server
问题描述
我正在尝试运行websocket服务器(php),但是每次调用php-cli database.php(服务器文件)时,我都会换行,但没有任何反应。我尝试ps斧| grep websocket或数据库,但没有看到与服务器相关的进程。您能帮我运行脚本吗?另外,我对格式化客户端和服务器端的地址也有些困惑(我已经按照websocket教程在Port 9000上运行了我的测试脚本),但这是另一个问题……如果有人可以帮助我,
I'm trying to run a websocket server (php) but every time I call php-cli database.php (server file) I am given a new line and nothing happens. I try ps ax | grep websocket or database but I'm not seeing a process associated with the server. Can you help me out with running my script? Also I'm a little confounded on formatting the addresses both clientside and serverside (I've been running my test scripts on Port 9000 as per websocket tutorial) but that is a question for another time... if anyone could help with these I'd appreciate it!
推荐答案
我发现我需要添加-n开关,因为我没有其他帖子访问atm。调用 php -n database.php会忽略Bluehost中的库,从而使其可以正常运行。
I found I needed to add the -n switch, as per another post I don't have access to atm. Calling "php -n database.php" ignores the libraries in Bluehost, which allows it to run properly.
这篇关于PHP脚本Bluehost Websocket服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!