baker95935

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 49 下一页

2020年5月11日

摘要: 1 先下载源码 点击下载 https://github.com/tencentyun/cos-php-sdk-v5/releases/download/v2.0.8/cos-sdk-v5.tar.gz 有vendor文件夹的 2解压后再 当前目录新建了个upload.php 3 测试可上传 文件如下 阅读全文
posted @ 2020-05-11 10:24 baker95935 阅读(1215) 评论(0) 推荐(0)

2020年5月10日

摘要: 折腾了好久 官方连个像样的例子都没给 折腾折腾 <?php function http_request($url,$data = null,$headers=array()) { $curl = curl_init(); if(count($headers) >= 1 ){ curl_setopt( 阅读全文
posted @ 2020-05-10 14:43 baker95935 阅读(760) 评论(0) 推荐(0)

2020年5月9日

摘要: 网址这里的 https://doc.sm.ms/#api-Image-Upload 图片上传 这些免费的 1 HTML部分 <form enctype="multipart/form-data" method="post" Authorization="14ac5499cfdd2bb2859e447 阅读全文
posted @ 2020-05-09 22:50 baker95935 阅读(1260) 评论(2) 推荐(0)

2020年5月7日

摘要: 整个流程梳理 1 先去语言包增加 审核 application/admin/lang/zh-cn/video.php 2 控制中 增加审核函数 发现审核就是在编辑的基础上 少了一些 字段 我直接复制编辑函数改下名字 就拿来用了 application/admin/controller/video.p 阅读全文
posted @ 2020-05-07 13:55 baker95935 阅读(10687) 评论(0) 推荐(1)

2020年5月5日

摘要: 好久没写原生SQL了,来个添加<?php if($_POST) { header("Content-type: text/html; charset=utf-8"); !empty($_POST['Fruit']) && $fruit=$_POST['Fruit']; !empty($_POST[' 阅读全文
posted @ 2020-05-05 15:08 baker95935 阅读(246) 评论(0) 推荐(0)

2020年4月27日

摘要: 当array是一个从0开始的连续数组时,json_encode出来的结果是一个由[]括起来的字符串。 而当array是不从0开始或者不连续的数组时,json_encode出来的结果是一个由{}括起来的key-value模式的字符串。 当字符串为[1,1,1] 这种模式时,json_decode默认解 阅读全文
posted @ 2020-04-27 20:47 baker95935 阅读(819) 评论(0) 推荐(0)

2020年4月21日

摘要: PHP文字合成图片的函数刚写完验证OK public function createOfficialCertsImg($id=0,$type=1) { $official_certs_id=$id; //获取证书详细信息 $certinfo=db('official_certs')->where(' 阅读全文
posted @ 2020-04-21 11:25 baker95935 阅读(197) 评论(0) 推荐(0)

2020年4月20日

摘要: 关于微信扫码登录的2种解决办法 1 因为之前写过微信的扫码登录 所以朋友有这个需求的时候 我直接让他去 微信开放平台去注册 https://open.weixin.qq.com/ 当然是这里了, 因为是网站上的需求 所以 https://developers.weixin.qq.com/doc/op 阅读全文
posted @ 2020-04-20 11:32 baker95935 阅读(1518) 评论(0) 推荐(0)

2020年4月16日

摘要: 使用fastadmin报错miss update condition的解决办法 fastadmin使用的是thinkphp5.0.24 所以这个是thinkphp5的报错 研究发现是因为 表未设置主键造成的 阅读全文
posted @ 2020-04-16 17:39 baker95935 阅读(2191) 评论(0) 推荐(0)

2020年4月15日

摘要: thinkphp5中的系统文件上传和$_FILES用法区别 $aa=request()->file('file'); $bb=$aa->getInfo(); 后面的file是文件的名字 $bb等同于$_FILES['file'] file是上传的文件名 阅读全文
posted @ 2020-04-15 11:07 baker95935 阅读(1268) 评论(0) 推荐(0)

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 49 下一页