2 Star 0 Fork 0

arronx / ll

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
cli.php 763 Bytes
一键复制 编辑 原始数据 按行查看 历史
xxx 提交于 2020-05-04 16:45 . 初始化
<?php
if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !');
//普通模式,解决官方分组不支持cli的问题
$depr = '/';
$path = isset($_SERVER['argv'][1])?$_SERVER['argv'][1]:'';
if(!empty($path)) {
$params = explode($depr,trim($path,$depr));
}
!empty($params)?$_GET['g']=array_shift($params):"";
!empty($params)?$_GET['m']=array_shift($params):"";
!empty($params)?$_GET['a']=array_shift($params):"";
if(count($params)>1) {
// 解析剩余参数 并采用GET方式获取
preg_replace('@(\w+),([^,\/]+)@e', '$_GET[\'\\1\']="\\2";', implode(',',$params));
}
//define('APP_MODE','cli');
define('APP_DEBUG',True);
define( 'APP_PATH', dirname(__FILE__).'/Application/' );
require dirname(__FILE__).'/ThinkPHP/ThinkPHP.php';
1
https://gitee.com/funmeet/ll.git
git@gitee.com:funmeet/ll.git
funmeet
ll
ll
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891