文章分类 -  websocket

摘要:环境:win10 + php7.1 + nginx1.2 聊天室实例 <?php error_reporting(E_ALL ^ E_NOTICE); ob_implicit_flush(); //地址与接口,即创建socket时需要服务器的IP和端口 $sk=new Sock('127.0.0.1 阅读全文
posted @ 2019-12-09 15:58 梦缘&江南~ 阅读(137) 评论(0) 推荐(0)
摘要:环境: 本地 win10 + php7.1nts + nginx1.2 阿里云 CentOS7.6 + php7.1nts + nginx1.2 在本地测试 socket 时,服务端设置IP地址:127.0.0.1,客户端IP是:127.0.0.1 是正常运行的;放到公网服务器后,服务端、客户端IP 阅读全文
posted @ 2019-12-09 15:47 梦缘&江南~ 阅读(1873) 评论(0) 推荐(0)