上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: 有时候业务的请求量突然上去了,那么这个时候我们可以查看下请求来源IP情况,如果是集中在少数IP上的,那么可能是存在攻击行为,我们使用防火墙就可以进行封禁。 命令: netstat -anlp | grep 80 | grep tcp | awk '{print $5}' | awk -F: '{pr 阅读全文
posted @ 2023-04-20 18:08 知风阁 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 方案一:先将浮点金额strval后再转int。(推荐) $param['order_price'] = intval(strval($param['order_price']*100)); 方案二: echo round(19.99*100); 这种方案出来是double类型,不推荐,但是纯显示的话 阅读全文
posted @ 2023-03-30 14:04 知风阁 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 找了很久的短网址系统,都不怎么合适,终于踏破铁鞋让我找到了。理想的系统,小巧、强大、稳定、方便、好用,他都有。 Ourls 这个项目,线上已用了1个月左右,日生产500+短链接,总量2w+,目前很稳定。 至于为什么叫简改呢? 那是因为我把跳转从302跳转换成了更为舒适的html meta标签重定向, 阅读全文
posted @ 2023-03-18 16:56 知风阁 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 第一步:打开phpStrom,安装激活插件 打开插件中心 File -> Settings -> Plugin,选择install plugin from disk.. 选中下面下载的ide-eval-resetter-2.1.14-d2fedb86.zip文件,点击OK即可 第二步: 4. 设置激 阅读全文
posted @ 2023-03-17 17:56 知风阁 阅读(463) 评论(0) 推荐(0) 编辑
摘要: 第一步: composer.json 文件加以下代码: "repositories": [{ "type": "composer", "url": "http://192.168.8.146:8122/" }] 第二步:composer.json 里的require添加一条自己要安的包信息: "co 阅读全文
posted @ 2023-03-10 15:46 知风阁 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 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:02 知风阁 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 代码很简单,一个方法即可。绝对不坑~ 👍 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 知风阁 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 点击跳转查看 https://segmentfault.com/a/1190000014971394?utm_source=sf-similar-article 阅读全文
posted @ 2022-11-21 19:42 知风阁 阅读(117) 评论(0) 推荐(0) 编辑
摘要: <?php header('Content-type:text/html; Charset=utf-8'); /** 请填写以下配置信息 **/ $publicKeyPath = getcwd() . '/cert/public_key.pem'; //微信支付公钥证书文件路径,可以到 https: 阅读全文
posted @ 2022-10-12 13:05 知风阁 阅读(974) 评论(0) 推荐(0) 编辑
摘要: <?php header('Content-type:text/html; Charset=utf-8'); /** 请填写以下配置信息 */ $mchid = 'xxxxx'; //微信支付商户号 PartnerID 通过微信支付商户资料审核后邮件发送 $appid = 'xxxxx'; //公众 阅读全文
posted @ 2022-10-12 13:04 知风阁 阅读(627) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 15 下一页