Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

program-interesting/socket-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

11 Commits

Repository files navigation

hello socket For PHP

1、修改 web.html 文件中的host

 //TODO 将 127.0.0.1 替换为服务的真实 Host, 即可
 let host = '127.0.0.1';

2、修改 index.php 文件中的host

 //TODO 将 127.0.0.1 替换为服务的真实 Host, 即可
 $host = '127.0.0.1';

3、启动服务:访问 host + 8088 即可

 1、启动服务端:php SocketService.php
 
 2、启动客户端: php -S 0.0.0.0:8088 -t ./ &
 
 3、访问host+8088:
 
 🤖️️ 点击开始聊天 👉: web.html
 
 点击后,即可开始聊天,balabala ...

About

socket 多语言实战-PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /