- 博客(11)
- 收藏
- 关注
原创 php获取视频时长
附上资源下载地址链接:https://pan.baidu.com/s/1hx_m7a5kuPTNwryTvctsbg提取码:7nw5–来自百度网盘超级会员V1的分享另外获取第一帧方面获取第一帧的方法是 在视频链接后面 拼上 ?x-oss-process=video/snapshot,t_1000,m_fast 这段就可以了 vendor('getID3-master.getid3.getid3'); $getID3 = new \getID3(); $Thi
2022-03-04 21:26:09
5658
原创 MySQL数据库优化的几种方式
设计数据库的时候选取最适合的字段属性尽可能的设置notnull 查询的时候不用去比较null值索引应加在join where判断 order by排序的字段上不使用NOT IN和<>操作NOT IN可以NOT EXISTS代替,id<>3则可使用id>3 or id<3来代替...
2022-01-06 11:54:11
386
原创 go解决build command-line-arguments: cannot find module
打开cmd输入以下指令即可go env -w set GO111MODULE=auto
2021-12-24 17:59:37
672
原创 flutter项目启动方式
flutter run运行默认自动(auto)flutter run -d chrome --web-renderer html //html模式运行 一般android此模式flutter run -d chrome --web-renderer canvaskit //canvaskit模式运行 一般IOS此模式h5 启动flutter run -d chrome --web-port=8080 --web-hostname=127.0.0.1 --web-renderer html
2021-12-23 17:59:24
1772
原创 php自定义数组重新排序俩种解决方法
第一种 $data = [ ['id'=>1,'title'=>'华为','price'=>6999], ['id'=>2,'title'=>'苹果','price'=>1999], ['id'=>3,'title'=>'小米','price'=>999], ['id'=>4,'title'=>'oppo','price'=>500]
2021-06-23 10:39:22
1381
2
转载 thinkphp-queue处理延时任务事件
安装think-queue官方地址:https://github.com/top-think/think-queuecomposer require topthink/think-queue<?php/** * Created by 老吴. * UserMsg:砥砺前行,扬帆起航 * email:cwwx0128@qq.com * QQ:1113249273 * QQ群:925283872 * 微信:cww0128 * Date: 2021/5/18 * Time: 9:5
2021-06-11 11:54:14
2332
3
转载 php 生成唯一订单号
第一种$danhao = date(‘Ymd’) . str_pad(mt_rand(1, 99999), 5, ‘0’, STR_PAD_LEFT);第二种$danhao = date(‘Ymd’).substr(implode(NULL, array_map(‘ord’, str_split(substr(uniqid(), 7, 13), 1))), 0, 8);第三种//生成24位唯一订单号码,格式:YYYY-MMDD-HHII-SS-NNNN,NNNN-CC,其中:YYYY=年份,MM=
2021-06-11 11:48:05
447
1
原创 Thinkphp6完美解决跨域
TP6完美解决跨域问题官方解决方法,打开 app/middleware.php ,文件末尾加上 \think\middleware\AllowCrossDomain::class<?php// 全局中间件定义文件return [ // 全局请求缓存 // \think\middleware\CheckRequestCache::class, // 多语言加载 // \think\middleware\LoadLangPack::class, // Ses
2021-06-08 00:20:17
2459
原创 node.js解压缩
const compressing = require(‘compressing’);compressing.zip.uncompress(‘test3.zip’, ‘test3’).then(() => {}).catch(() => {});//或者await compressing.zip.uncompress(‘test3.zip’, ‘test3’) //如果要解压到当前目录换成 ‘./’...
2021-05-24 14:16:14
315
原创 Linux下隐藏index.php
例如原来的 URL 为:http://127.0.0.1/index.php/Index/去掉 index.php 之后变为:http://127.0.0.1/Index/首先进入到自己的域名配置文件里去/usr/local/nginx/conf/vhost/自己的域名.conf在里面 有俩条 include enable-php-pathinfo.conf;俩个下面都添加如下内容...
2018-11-23 23:14:09
759
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人