会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
itBaby
风存,不否认。不盲从风,智者也。
首页
新随笔
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
18
下一页
2023年4月20日
查找80端口请求数最高的前20个IP
摘要: 有时候业务的请求量突然上去了,那么这个时候我们可以查看下请求来源IP情况,如果是集中在少数IP上的,那么可能是存在攻击行为,我们使用防火墙就可以进行封禁。 命令: netstat -anlp | grep 80 | grep tcp | awk '{print $5}' | awk -F: '{pr
阅读全文
posted @ 2023-04-20 18:08 知风阁
阅读(35)
评论(0)
推荐(0)
2023年3月30日
php 浮点数转int精度丢失问题解决办法
摘要: 方案一:先将浮点金额strval后再转int。(推荐) $param['order_price'] = intval(strval($param['order_price']*100)); 方案二: echo round(19.99*100); 这种方案出来是double类型,不推荐,但是纯显示的话
阅读全文
posted @ 2023-03-30 14:03 知风阁
阅读(178)
评论(0)
推荐(0)
2023年3月18日
一款基于hashid简改的短网址系统(php)
摘要: 找了很久的短网址系统,都不怎么合适,终于踏破铁鞋让我找到了。理想的系统,小巧、强大、稳定、方便、好用,他都有。 Ourls 这个项目,线上已用了1个月左右,日生产500+短链接,总量2w+,目前很稳定。 至于为什么叫简改呢? 那是因为我把跳转从302跳转换成了更为舒适的html meta标签重定向,
阅读全文
posted @ 2023-03-18 16:56 知风阁
阅读(70)
评论(0)
推荐(0)
2023年3月17日
phpstorm2019 激活方法最新(2023.03.17,亲测可用)
摘要: 第一步:打开phpStrom,安装激活插件 打开插件中心 File -> Settings -> Plugin,选择install plugin from disk.. 选中下面下载的ide-eval-resetter-2.1.14-d2fedb86.zip文件,点击OK即可 第二步: 4. 设置激
阅读全文
posted @ 2023-03-17 17:56 知风阁
阅读(637)
评论(0)
推荐(0)
2023年3月10日
composer 安装本地包(内部包)步骤记录
摘要: 第一步: composer.json 文件加以下代码: "repositories": [{ "type": "composer", "url": "http://192.168.8.146:8122/" }] 第二步:composer.json 里的require添加一条自己要安的包信息: "co
阅读全文
posted @ 2023-03-10 15:46 知风阁
阅读(626)
评论(0)
推荐(0)
2023年3月7日
hashid,短链接项目算法神器
摘要: Hashids is a small open-source library that generates short, unique, non-sequential ids from numbers. 超级简单好用的DUAN链接生成神器,附github 飞机 https://github.com/
阅读全文
posted @ 2023-03-07 11:01 知风阁
阅读(24)
评论(0)
推荐(0)
2023年2月14日
php 分割汉字或字母为数组(简记)
摘要: 代码很简单,一个方法即可。绝对不坑~ 👍 function mb_str_split($str,$split_length=1,$charset="UTF-8"){ if(func_num_args()==1){ return preg_split('/(?<!^)(?!$)/u', $str);
阅读全文
posted @ 2023-02-14 15:13 知风阁
阅读(111)
评论(0)
推荐(0)
2022年11月21日
PHP本地使用CURL请求Https接口报错解决方案
摘要: 点击跳转查看 https://segmentfault.com/a/1190000014971394?utm_source=sf-similar-article
阅读全文
posted @ 2022-11-21 19:41 知风阁
阅读(147)
评论(0)
推荐(0)
2022年10月12日
php 微信支付V3异步回调通知 demo
摘要: <?php header('Content-type:text/html; Charset=utf-8'); /** 请填写以下配置信息 **/ $publicKeyPath = getcwd() . '/cert/public_key.pem'; //微信支付公钥证书文件路径,可以到 https:
阅读全文
posted @ 2022-10-12 13:05 知风阁
阅读(1615)
评论(0)
推荐(0)
php 微信支付V3 扫码支付demo
摘要: <?php header('Content-type:text/html; Charset=utf-8'); /** 请填写以下配置信息 */ $mchid = 'xxxxx'; //微信支付商户号 PartnerID 通过微信支付商户资料审核后邮件发送 $appid = 'xxxxx'; //公众
阅读全文
posted @ 2022-10-12 13:04 知风阁
阅读(822)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
18
下一页
公告