会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
路漫漫其修远兮,吾将上下而求索
博客园
首页
新随笔
联系
订阅
管理
2020年8月3日
nginx+php 对静态文件进行鉴权
摘要: 假设静态文件路径为 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)
2020年5月19日
php计算两个时间段内的 工作日 工作小时
摘要: <?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)
2019年7月29日
分词搜索 sphinx+php+mysql
摘要: 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)
2019年4月17日
apache-2.4.6 mod_bw-0.92 实现限速上传或下载
摘要: 下载 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)
2018年10月16日
php 一行代码解决二维数组去重
摘要: array_unique($array, SORT_REGULAR);
阅读全文
posted @ 2018-10-16 14:44 一名保安
阅读(207)
评论(0)
推荐(0)
2018年9月6日
php 二维数组根据值进行排序
摘要: // 先获取要排序的值 $createTime = array_column($data, 'create_time'); // 排序成功 array_multisort($createTime, SORT_DESC, $data);
阅读全文
posted @ 2018-09-06 18:00 一名保安
阅读(244)
评论(0)
推荐(0)
公告