摘要: 假设静态文件路径为 127.0.0.1/ueditor/upload/image/202007/1596088338482109.png 建立ueditor的软链接 ln -s ueditor ln_ueditor nginx配置 server{ #... # 设置ln_ueditor 目录只能内部 阅读全文
posted @ 2020-08-03 10:57 一名保安 阅读(971) 评论(0) 推荐(0)
摘要: <?php class WorkTime { // 定义工作日 [1, 2, 3, 4, 5, 6, 0] public $week_workingday = [1, 2, 3, 4, 5]; // 定义上下班时间 public $on_duty_time = '9:00:00'; public $ 阅读全文
posted @ 2020-05-19 11:14 一名保安 阅读(1536) 评论(0) 推荐(0)
摘要: sphinx3.1.1的安装与使用 下载sphinx3.1.1 wget http://sphinxsearch.com/files/sphinx-3.1.1-612d99f-linux-amd64.tar.gz 解压 tar zxf sphinx-3.1.1-612d99f-linux-amd64 阅读全文
posted @ 2019-07-29 15:03 一名保安 阅读(815) 评论(0) 推荐(0)
摘要: 下载 mod_bw wget http://ivn.cl/files/source/mod_bw-0.92.tgz 解压到mod_bw tar -zxvf mod_bw-0.92.tgz -C mod_bw 编辑 mod_bw.c 替换remote_addr 为 client_addr :%s/re 阅读全文
posted @ 2019-04-17 16:57 一名保安 阅读(260) 评论(0) 推荐(0)
摘要: array_unique($array, SORT_REGULAR); 阅读全文
posted @ 2018-10-16 14:44 一名保安 阅读(207) 评论(0) 推荐(0)
摘要: // 先获取要排序的值 $createTime = array_column($data, 'create_time'); // 排序成功 array_multisort($createTime, SORT_DESC, $data); 阅读全文
posted @ 2018-09-06 18:00 一名保安 阅读(244) 评论(0) 推荐(0)