lixuancn / MeepoPS

MeepoPS是Meepo PHP Socket的缩写,旨在提供稳定的Socket服务。可以轻松构建在线实时聊天、即时游戏、视频流媒体播放等。
http://meepops.lanecn.com
Do What The F*ck You Want To Public License
505 stars 137 forks source link

websocket和HTTP的API接口全部报错, #10

Closed LiHaoLi closed 7 years ago

LiHaoLi commented 7 years ago

[root@VM_40_223_centos meepops]# sudo php demo-websocket.php start

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /www/wwwroot/meepops/demo-websocket.php on line 16

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /www/wwwroot/meepops/demo-websocket.php on line 16

Parse error: syntax error, unexpected T_STRING in /www/wwwroot/meepops/demo-websocket.php on line 16 [root@VM_40_223_centos meepops]# sudo php demo-http.php start

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /www/wwwroot/meepops/demo-http.php on line 17

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /www/wwwroot/meepops/demo-http.php on line 17

Parse error: syntax error, unexpected T_STRING in /www/wwwroot/meepops/demo-http.php on line 17

lixuancn commented 7 years ago

这。。。你PHP用的5.2或者更低的版本吧

iMactool commented 7 years ago

在启动入口那里直接判断PHP版本,低于指定版本直接不给他启动~

lixuancn commented 7 years ago

恩,启动那里我现在给加一个。

LiHaoLi commented 7 years ago

用的是PHP5.6

LiHaoLi commented 7 years ago

Linux是7.2x64

lixuancn commented 7 years ago

这东西你就检查你是不是改过demo-websocket.php和demo-http.php,改完是不是少了分号啊什么的。