36 Star 531 Fork 155

Raingad / IM即时聊天-php

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
start.php 854 Bytes
一键复制 编辑 原始数据 按行查看 历史
律者 提交于 2023-08-29 18:36 . 完善注册认证功能
<?php
/**
* run with command
* php start.php start
*/
ini_set('display_errors', 'on');
use Workerman\Worker;
if(strpos(strtolower(PHP_OS), 'win') === 0)
{
exit("start.php not support windows, please use start_for_win.bat\n");
}
// 检查扩展
if(!extension_loaded('pcntl'))
{
exit("Please install pcntl extension. See http://doc3.workerman.net/appendices/install-extension.html\n");
}
if(!extension_loaded('posix'))
{
exit("Please install posix extension. See http://doc3.workerman.net/appendices/install-extension.html\n");
}
// 标记是全局启动
define('GLOBAL_START', 1);
require_once __DIR__ . '/vendor/autoload.php';
// 加载所有Applications/*/start.php,以便启动所有服务
foreach(glob(__DIR__.'/app/worker/start*.php') as $start_file)
{
require_once $start_file;
}
// 运行所有服务
Worker::runAll();
PHP
1
https://gitee.com/raingad/im-instant-chat.git
git@gitee.com:raingad/im-instant-chat.git
raingad
im-instant-chat
IM即时聊天-php
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891