1
你好我試圖實現客戶端和服務器之間的websocket通信。問題是,當IM特林啓動服務器即時得到這個錯誤在命令行websockets socket_select錯誤
# 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
第35行的代碼是上面:
$num_sockets = socket_select($changed_sockets,$write=NULL,$exceptions=NULL,NULL);
...我已經尋找答案,但還沒有任何作品。有誰能夠幫助我?感謝名單
這個作品! @ lucky13:至少請將此標記爲正確答案。 – akshob 2014-09-07 20:03:29