Swoole完美支持ThinkPHP5
2018-05-23
阅读 3 分钟
20.1kSwoole完美支持ThinkPHP5 1、首先要开启http的server 可以在thinkphp的目录下创建一个server目录,里面创建一个HTTPServer的php 2、需要在WorkerStart回调事件做两件事 定义应用目录:define('APP_PATH', __DIR__ . '/../application/'); 加载基础文件:require __DIR__ . '/../thinkphp/base.php'; 3、因为swoole接收ge...