man*_*man 1 php websocket phpwebsocket
您好我试图在客户端和服务器之间实现websocket通信.问题是当我试图在命令行中启动服务器时出现此错误
# php -q htdocs\socket\server\startDaemon.php
2012-07-23 10:10:02 System: Socket Resource id #7 cre
2012-07-23 10:10:02 System: Socket bound to localhost
2012-07-23 10:10:02 System: Start listening on Socket
Strict Standards: Only variables should be passed by reference in
C:\xampp\htdocs\socket\server\socketWebSocket.class.php on line 35
Run Code Online (Sandbox Code Playgroud)
第35行的代码如上:
$num_sockets = socket_select($changed_sockets,$write=NULL,$exceptions=NULL,NULL);
Run Code Online (Sandbox Code Playgroud)
我找了答案,但没有任何作用.有谁能够帮我?感谢名单
尝试
$write=NULL;
$exceptions=NULL;
$num_sockets = socket_select($changed_sockets,$write,$exceptions, NULL);
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2267 次 |
最近记录: |