会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
matengfei
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
18
下一页
2019年2月17日
oatu2.0认证原理(转)
摘要: 今天有时间总结一下: 一.OAuth是一个关于授权(authorization)的开放网络标准,在全世界得到广泛应用,目前的版本是2.0版。 在详细讲解OAuth 2.0之前,需要了解几个专用名词,理解它们对理解OAuth2.0的基本原理很重要。 (1) Third-party applicatio
阅读全文
posted @ 2019-02-17 13:40 matengfei
阅读(806)
评论(0)
推荐(0)
2019年2月15日
面试 * 氧,一些基础知识点记录下来
该文被密码保护。
阅读全文
posted @ 2019-02-15 12:05 matengfei
阅读(52)
评论(0)
推荐(0)
2019年2月10日
统计Apache或nginx日志里访问次数最多的前十个IP
摘要: 1.根据访问IP统计UV awk '{print $1}' access.log|sort | uniq -c |wc -l 2.统计访问URL统计PV awk '{print $7}' access.log|wc -l 3.查询访问最频繁的URL awk '{print $7}' access.l
阅读全文
posted @ 2019-02-10 15:13 matengfei
阅读(2502)
评论(0)
推荐(0)
2019年1月18日
layui开始时间小于结束时间
摘要: 直接上代码
阅读全文
posted @ 2019-01-18 15:53 matengfei
阅读(3059)
评论(0)
推荐(0)
2018年12月28日
php in_array 的 坑
摘要: 话不多说,直接上代码 是 true 这是因为 php是弱类型语言,会把7.php强制转化 7 ,所以解决的办法是加 true false 但是开启后,也会导致 为false
阅读全文
posted @ 2018-12-28 10:02 matengfei
阅读(806)
评论(0)
推荐(0)
2018年12月27日
ngxin做http强制跳转https,接口的POST请求变成GET
摘要: http强制跳转https出现了问题。修改nginx配置如下即可解决: 301 Moved Permanently 被请求的资源已永久移动到新位置,并且将来任何对此资源的引用都应该使用本响应返回的若干个 URI 之一 307 Temporary Redirect 请求的资源现在临时从不同的URI 响
阅读全文
posted @ 2018-12-27 17:51 matengfei
阅读(1029)
评论(0)
推荐(0)
2018年12月21日
mysql 用 group by 和 order by同时使用
摘要: 首先,这是不可能实现的 mysql的查询的顺序 select -> from-> where->group by->having->order by. 但mysql的解析器执行顺序: from-> where->group by->having->select->order by. 所以,从执行的流
阅读全文
posted @ 2018-12-21 19:51 matengfei
阅读(8268)
评论(0)
推荐(1)
2018年12月19日
php 获得上周数据
摘要: $lastMondy = date('Y-m-d', strtotime('-2 sunday +1 days', time()));$lastSundy = date('Y-m-d', strtotime('-1 sunday', time()));
阅读全文
posted @ 2018-12-19 18:21 matengfei
阅读(257)
评论(0)
推荐(0)
2018年12月8日
PHP arrray_filter(), array_map()区别与应用
摘要: array_filter()用回调函数过滤数组中的元素。依次将数组中的元素传递给回调函数,如果回调函数返回true,则被过滤的元素作为返回数组的元素,并最终一起返回。数组的键名保持不变。array_mpa()数组的各元素应用回调函数。各元素应用回调函数后,得到的结果作为array_map()函数最终
阅读全文
posted @ 2018-12-08 17:51 matengfei
阅读(430)
评论(0)
推荐(0)
各个nginx conf的虚拟主机的配置
摘要: server { listen 80; server_name t-cl.orangevip.com; rewrite ^(.*)$ https://$host$1 permanent;} server { listen 443; server_name t-cl.orangevip.com; ch
阅读全文
posted @ 2018-12-08 16:21 matengfei
阅读(432)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
18
下一页
公告