I would like to make a websokect chat room and download some demos online. I would like to thank you!

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.