会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
php冉
新随笔
订阅
管理
2024年7月18日
fastadmin分类表单写法
摘要: 点击查看代码 <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label> <div class="col-xs-12 col-sm-8"> <input
阅读全文
posted @ 2024-07-18 17:24 php冉
阅读(37)
评论(0)
推荐(0)
2024年6月25日
在 PHP 中使用 Ghostscript 合并多个 PDF 文件
摘要: Ghostscript 是一个没有内置在 Windows 上的命令行库。首先,我们需要从链接 https://ghostscript.com/releases/gsdnld.html 安装 Ghostscript。 根据你的操作系统版本下载 Ghostscript 文件。该文件将是这样的: gs95
阅读全文
posted @ 2024-06-25 18:21 php冉
阅读(224)
评论(0)
推荐(0)
tp5方法setInc、setDec tp6方法Inc、dec
摘要: TP5 点击查看代码 Db::name( 'song' )->where( 'id', $song_id )->setDec( 'song_number', 5 );//给song_number减少5 Db::name( 'song' )->where( 'id', $song_id )->setI
阅读全文
posted @ 2024-06-25 10:53 php冉
阅读(323)
评论(0)
推荐(0)
2024年6月12日
PHP合并PDF
摘要: composer安装组件 两个都要安装! composer require setasign/fpdi composer require setasign/fpdf 点击查看代码 $pdf = new Fpdi(); $page_count1 = $pdf->setSourceFile("./68/
阅读全文
posted @ 2024-06-12 16:41 php冉
阅读(50)
评论(0)
推荐(0)
PHP列出当前目录所有文件
摘要: 点击查看代码 if ($handle = opendir('.')) { while (false !== ($entry = readdir($handle))) { if ($entry != '.' && $entry != '..') { echo "$entry\n"; } } close
阅读全文
posted @ 2024-06-12 15:42 php冉
阅读(10)
评论(0)
推荐(0)
composer阿里云镜像设置
摘要: 点击查看代码 composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ //显示当前镜像 composer config -g --list --verbose //解除镜像 composer co
阅读全文
posted @ 2024-06-12 14:35 php冉
阅读(35)
评论(0)
推荐(0)
thinkphp 伪静态规则
摘要: 点击查看代码 location ~* (runtime|application)/{ return 403; } location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } }
阅读全文
posted @ 2024-06-12 14:05 php冉
阅读(45)
评论(0)
推荐(0)
2024年5月22日
fastadmin离线安装插件提示 请从官网渠道下载插件压缩包 解决办法
摘要: 一、修改config.php文件 点击查看代码 //是否允许未知来源的插件压缩包 'unknownsources' => true, 二、修改.env文件,开启debug调试模式 点击查看代码 debug = true trace = true 三、/vendor/karsonzhang/fasta
阅读全文
posted @ 2024-05-22 11:19 php冉
阅读(1964)
评论(0)
推荐(0)
2024年5月13日
Promise对象中[[PromiseResult]]的取值
摘要: 点击查看代码 const result = this.$uploader.upload2qiniu(lists[i].url) result.then(res=>{ console.log(res) })
阅读全文
posted @ 2024-05-13 11:32 php冉
阅读(27)
评论(0)
推荐(0)
PHP TP框架同时使用where whereOr
摘要: 点击查看代码 $meal=Db::name('meal_cookbook')->where('cookbook_name', 'like', '%'.$param['cookbook_name'].'%')->where(function ($query) { $map1[] = ['uid', '
阅读全文
posted @ 2024-05-13 11:31 php冉
阅读(27)
评论(0)
推荐(0)
下一页