Git克隆指定分支、指定目录

摘要: git clone -b 分之名 http的git地址 git clone -b 分之名 http的git地址 c:/User/zp/dev指定目录 阅读全文
posted @ 2019-11-22 15:30 duo飞 阅读(5900) 评论(0) 推荐(0) 编辑

TP5日志

摘要: 首先需要引入: 方式一: 简单 方式二:结合异常处理,记录异常的原因 方式三:定位日志位置,利用PHP魔术常亮 说明: ①:日志的结果如下:F:\WWW\xxx\xxx\Application\Pay\Logic\OrderLogic.class.php[214L](方式短信通知) ②:__FILE 阅读全文
posted @ 2019-08-14 13:38 duo飞 阅读(1649) 评论(0) 推荐(0) 编辑

python数组排序(递归实现)

摘要: #!/usr/bin/python # -*- coding: UTF-8 -*- def sort( Arr , newArr = [] ): if len(Arr) > 0 : lenNum = len(newArr); if lenNum : #Arr[0] 当前值 比数组的第一位还小 if 阅读全文
posted @ 2019-07-24 17:32 duo飞 阅读(417) 评论(0) 推荐(0) 编辑

php数组排序(递归实现)

摘要: $Arr[0] ){ array_splice($newArr,0,0,$Arr[0]); #Arr[0] 当前值 比数组的最后一位还大 }else if ( $newArr[ $lenNum-1 ] $v) { if ( ($v $Arr[0]) ){ array_splice($newArr,$k+1,0,$Arr[0]);... 阅读全文
posted @ 2019-07-24 15:14 duo飞 阅读(771) 评论(0) 推荐(0) 编辑

nginx 404 500 502

摘要: 1.nginx 配置完后 出现404。 遇到这种情况,第一个想到是nginx 与 php 没有配置 pathinfo 的问题。 解决方法: nginx.conf加上这段 location ~ .+\.php($|/) { set $script $uri; set $path_info ""; if ($uri ~ "^(.+\.php)(/.+... 阅读全文
posted @ 2019-06-27 15:46 duo飞 阅读(367) 评论(0) 推荐(0) 编辑

安装composer

摘要: 可参照手册:https://pkg.phpcomposer.com/ 阅读全文
posted @ 2019-06-27 14:53 duo飞 阅读(100) 评论(0) 推荐(0) 编辑

swoole安装

摘要: php版本 7.2.19git clone https://gitee.com/swoole/swoole.git 1、cd swoole根目录下 运行 /usr/local/php/bin/phpize 2、./configure --with-php-config=/usr/local/php/ 阅读全文
posted @ 2019-06-27 14:39 duo飞 阅读(105) 评论(0) 推荐(0) 编辑

tp5系统常量对应的目录路径

摘要: THINK_PATH 框架系统目录 ROOT_PATH 框架应用根目录 APP_PATH 应用目录(默认为application) CONF_PATH 配置目录(默认为APP_PATH) LIB_PATH 系统类库目录(默认为 THINK_PATH.'library/') CORE_PATH 系统核心类库目录 (默认为 LIB_PATH.'think/') TRAIT_PATH 系统trait... 阅读全文
posted @ 2019-06-24 09:57 duo飞 阅读(4881) 评论(0) 推荐(0) 编辑

linux 初始化git仓

摘要: 本地已经有一个项目了,需要将该项目放到github上,怎么操作? 步骤: 本地安装git,有github账号是前提。 (1)先在github创建一个空的仓库,并复制链接地址。使用https,以.git结尾的那个地址。 (2)初始化本地仓库,并提交内容到本地 要先打开命令行终端,然后通过cd命令切换到 阅读全文
posted @ 2019-06-19 17:17 duo飞 阅读(2006) 评论(0) 推荐(0) 编辑

TP5配置操作redis

摘要: 配置方式如下: 使用符合缓存类型时,需要根据需要使用store方法切换缓存。 当使用 的时候,使用的是default缓存标识的缓存配置。如果需要切换到其它的缓存标识操作,可以使用: 阅读全文
posted @ 2019-04-04 18:04 duo飞 阅读(4548) 评论(0) 推荐(0) 编辑