会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
北往星辰
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
···
10
下一页
2020年10月11日
获取某日期后一周、一月、一年的日期 php
摘要: //获取某日期后三周同一天日期public static function getNextDate($date){ $return = [ date( 'Y-m-d', strtotime("$date +1 day") ), date( 'Y-m-d', strtotime("$date +1 w
阅读全文
posted @ 2020-10-11 15:57 北往星辰
阅读(694)
评论(0)
推荐(0)
2020年9月30日
PHP 读取文件夹(比如某共享文件夹)中的图片并显示
摘要: 1.获取文件夹下图片public function albumList(){ $share_url = input('path'); $files = getImgList($share_url); //json格式输出图片路径列表} //获取图片文件列表函数function getImgList(
阅读全文
posted @ 2020-09-30 19:49 北往星辰
阅读(1918)
评论(0)
推荐(0)
php 获取某文件夹(比如共享文件夹)下图片并下载并压缩成zip
摘要: 1.前端部分:直接请求 2.后端php //zip下载public function downZip(){ $pro_code = "test"; //zip名称 //获取列表 $dir = input('path',''); //文件路径 eg: \\192.168.199.176\2020052
阅读全文
posted @ 2020-09-30 19:25 北往星辰
阅读(499)
评论(0)
推荐(0)
2020年7月13日
php 获取某年后的日期
摘要: 比如两年后:date('Y-m-d',strtotime('+2 year')) 月份year改成month
阅读全文
posted @ 2020-07-13 19:02 北往星辰
阅读(788)
评论(0)
推荐(0)
2020年7月10日
thinkphp之独立日志(tp5.1)
摘要: 为了便于分析,File类型的日志还支持设置某些级别的日志信息单独文件记录,以error类型的日志为例,例如: 1.在log.php 中配置 'apart_level' => [ 'error' //error类型的日志就会单独记录到日志里面], 2.error类型日志快速记录:Log::error(
阅读全文
posted @ 2020-07-10 16:13 北往星辰
阅读(1988)
评论(0)
推荐(0)
2020年6月24日
php 实现图片下载,文件下载
摘要: 1.控制器public function downPic(){ $filename = input('file','','string'); //文件所在路径 // 检查文件是否存在 if (! file_exists($filename) ) { $this->error('文件未找到'); }e
阅读全文
posted @ 2020-06-24 16:00 北往星辰
阅读(599)
评论(0)
推荐(0)
2020年5月22日
thinkphp 5中的混合查询
摘要: 1.手册样例thinkphp 5.0Db::table('think_user') ->where('name',['like','thinkphp%'],['like','%thinkphp']) ->where(function($query){ $query->where('id',['<',
阅读全文
posted @ 2020-05-22 18:08 北往星辰
阅读(670)
评论(0)
推荐(0)
2020年5月20日
phpstorm中加上符号($,括号等)后搜索不到
摘要: Ctrl+F右边选中这个Regex后带上符号就搜索不到,不要勾选这个就可以带符搜索了
阅读全文
posted @ 2020-05-20 15:14 北往星辰
阅读(649)
评论(0)
推荐(0)
2020年5月17日
前端用网址生成二维码(jquery)
摘要: 1.加载jquery.qrcode.min.js 2.html部分: 3.js部分:url为生成二维码的网址 附: jquery.qrcode.min.js下载 链接:https://pan.baidu.com/s/1pevNPUQPnRrVGdHH_Nj7Gg 提取码:ef5v
阅读全文
posted @ 2020-05-17 14:51 北往星辰
阅读(722)
评论(0)
推荐(0)
2020年4月20日
layui中的视频上传(PHP )
摘要: 1.html中: <div class="layui-form-item"> <label class="layui-form-label">视频:</label> <div class="layui-input-inline"> <!--存放上传后视频路径--> <input type="text
阅读全文
posted @ 2020-04-20 17:26 北往星辰
阅读(2509)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
10
下一页
公告