• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






逝火

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2020年10月29日

限制IP频繁访问
摘要: 用session防止IP频繁访问的方法 //代理IP直接退出 empty($_SERVER['HTTP_VIA']) or exit('Access Denied'); //防止快速刷新 session_start(); $seconds = '3'; //时间段[秒] $refresh = '5' 阅读全文
posted @ 2020-10-29 23:10 逝火 阅读(745) 评论(0) 推荐(0)
 
laravel定义不同的日志保存渠道
摘要: laravel定义不同的日志保存渠道 只用在配置文件里加一个配置就可以了 config\logging.php 'aaa' => [ 'driver' => 'daily', 'path' => storage_path('logs/aaa/aaa.log'), 'level' => 'debug' 阅读全文
posted @ 2020-10-29 23:05 逝火 阅读(304) 评论(0) 推荐(0)
 
php 数组中的数据处理合集
摘要: PHP 删除数组中的元素 删除数据中的一个元素 unset() 方法 array_splice() 方法 数组的键会自动重新建立索引 删除数组中的多个元素 array_diff() 方法 array_diff_key() 方法 ###### 获取数组中的重复数据 function FetchRepe 阅读全文
posted @ 2020-10-29 23:04 逝火 阅读(308) 评论(0) 推荐(0)
 
微信开发中所应有到的问题及链接-php
摘要: 1 微信小程序出现授权异常 The given payload is invalid https://github.com/overtrue/wechat/issues/1312 2 laravel 使用easywechat 对接微信 https://www.jianshu.com/p/82d688 阅读全文
posted @ 2020-10-29 22:51 逝火 阅读(403) 评论(0) 推荐(0)