I want to create a websokect chat room and download some demos online. I can't even use them. I would like to thank you for your advice. my younger brother's php is very helpful. I only know the php code, recently, I have a websokect chat room requirement, but the backend code is always running. I use wamp as a php server, does php need to configure something on the server when it supports websokect? WS_STATIC_URL & nbsp; htt cannot be used to download some demos online in a websokect chat room, thank you!
For example, the younger brother's php is very popular. he only knows the php code,
Recently, the websokect chat room needs to be implemented, but the backend code has been running normally,
I use wamp as a php Server. is it necessary to configure something on the server when php supports websokect?
WS_STATIC_URL = 'http: // 127.0.0.1/websocket/static ';
WS_HOST = '2017. 0.0.1 ';
WS_PORT = 843;
For example, Port 843 or something.
------ Solution --------------------
If a firewall exists, all ports must be enabled.
The php_sockets extension needs to be loaded.
The server must run in CLI (command line) mode. pay attention to the location of php. ini.