jack_qinSer
码龄3年
关注
提问 私信
  • 博客:5,654
    5,654
    总访问量
  • 6
    原创
  • 632,155
    排名
  • 1
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:上海市
  • 加入CSDN时间: 2021-10-09
博客简介:

jack_qinSer的博客

查看详细资料
个人成就
  • 获得8次点赞
  • 内容获得2次评论
  • 获得1次收藏
创作历程
  • 6篇
    2021年
成就勋章
TA的专栏
  • php
    2篇
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

thinkphp6 过滤XSS攻击 详解

首先使用composer执行命令composer require ezyang/htmlpurifier在app/common.php公共文件中定义remove_xss函数if (!function_exists('remove_xss')) { //使用htmlpurifier防范xss攻击 function remove_xss($string){ //相对index.php入口文件,引入HTMLPurifier.auto.php核心文件 .
原创
发布博客 2021.12.15 ·
710 阅读 ·
2 点赞 ·
0 评论 ·
0 收藏

Thinkphp6 七牛云图片上传 详解

首先获取Access Key和Secret KeyComposer下载composer require lorine/oss-utils上代码use Lorine\OssUtils\OssService; $config = [ 'ak' => 'xxxxxx',//SecretId /Access_Key 'sk' => 'xxxxxx',//SecretKe /Secret_Key...
原创
发布博客 2021.12.14 ·
840 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

thinkphp6 Excel导入导出 包含图片

composer下载composer require phpoffice/phpspreadsheetpublic function export() { $data = $this->model->field('type_name,image,statusswitch')->select(); //创建一个新的excel文档 $newExcel = new Spreadsheet(); /.
原创
发布博客 2021.12.12 ·
855 阅读 ·
1 点赞 ·
2 评论 ·
0 收藏

thinkphp6 Excel导入导出 详解

composer下载composer require phpoffice/phpspreadsheet导入导出<?phpnamespace app\index\lib;use PhpOffice\PhpSpreadsheet\Cell\Coordinate;use PhpOffice\PhpSpreadsheet\IOFactory;use PhpOffice\PhpSpreadsheet\Spreadsheet;use think\exception\Validate.
原创
发布博客 2021.12.01 ·
608 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

无限级分类 详解

if(!function_exists("get_cate_list")){ //返回无限级分类菜单 function get_cate_list($list,$pid=0,$f=0){ //声明一个静态数组存储处理后的数据 static $arr = []; foreach($list as $val){ if($val['pid']==$pid){ $val['level'] ...
原创
发布博客 2021.11.28 ·
591 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

thinkphp6 token令牌 生成详解

颁发token令牌
原创
发布博客 2021.11.27 ·
2051 阅读 ·
2 点赞 ·
0 评论 ·
1 收藏