php script Bluehost Websocket server

风流意气都作罢 提交于 2019-12-13 12:48:39

问题


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!


回答1:


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.



来源:https://stackoverflow.com/questions/30871861/php-script-bluehost-websocket-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!