用thinkphp6框架的think-swoole实现websocket的onRequest回调事件为什么要写这个onRequest回调1.用户链接socket后发送消息触发对应消息相应并回复 satisfy2.用户链接socket后 我们在后台主动触发按钮调用接口去主动发送给指定用户 no satisfyso,我们修改以下代码.1.修改thinkphp6的底层类vendor/topth...
Bulk write failed due to previous MongoDB\Driver\Exception\AuthenticationException: Authentication failed.这里thinkphp6内置的think-orm已经包含mongo连接了,所以不用单独安装think-mongo(安装后类会冲突导致报错)1.添加.env配置文件中的配置[mongo]...
File(/vagrant/php/old/index.php) is not within the allowed path(s): (/home/wwwroot/default/:/tmp/:/proc/)问题是出现在了php.INI上面了 原因是php.ini里设置了open_basedir = /home/wwwroot/default/:/tmp/:/proc/:/vagrant/...