1 Star 0 Fork 1

小小程序员 / tp51

forked from rainbow / tp51 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
server2.php 836 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
hzboye010 提交于 2018-03-03 17:45 . add gateway-worker
#!/usr/bin/env php
<?php
namespace think;
ini_set('display_errors', 'on');
// if(strpos(strtolower(PHP_OS), 'win') === 0)
// {
// exit("start.php not support windows.\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('APP_PATH', __DIR__ . '/application/');
define('CONFIG_PATH', __DIR__ . '/config/');
define('POWER','rainbow');
define('__ROOT__', '');
// 加载基础文件
require __DIR__ . '/thinkphp/base.php';
// 执行应用并响应
Container::get('app',[APP_PATH])->bind('push/Run2')->run()->send();
PHP
1
https://gitee.com/XiaoXiaoChengXuYuang/tp51.git
git@gitee.com:XiaoXiaoChengXuYuang/tp51.git
XiaoXiaoChengXuYuang
tp51
tp51
master

搜索帮助

14c37bed 8189591 565d56ea 8189591