随笔分类 - PHP
摘要:阿里云短信 window 报 cURL error 60: SSL certificate problem: unable to get local issuer certificate 原文链接:https://blog.csdn.net/qq_41408081/article/details/1
阅读全文
摘要:PhpSpreadsheet是一个纯PHP编写的组件库,它使用现代PHP写法,代码质量和性能比PHPExcel高不少,完全可以替代PHPExcel(PHPExcel已不再维护)。使用PhpSpreadsheet可以轻松读取和写入Excel文档,支持Excel的所有操作。1. 初识PhpSpreads
阅读全文
摘要:$period = new \DatePeriod( new \DateTime($start_time), // 开始时间 new \DateInterval('P1D'), new \DateTime($end_time) // 结束时间);foreach ($period as $key =>
阅读全文
摘要:array_walk($list, function (&$item) { $item = array_diff($item, ['name', 'sex']); }); array_walk($arr_ten, function (&$val) { unset($val['pay']);});
阅读全文
摘要:一:安装overtrue/pinyin拓展 composer require overtrue/pinyin overtrue/pinyin拓展GitHub地址:https://github.com/overtrue/pinyin 二:overtrue/pinyin拓展简单使用 overtrue/p
阅读全文
摘要:$arr23 = [ ['day' => 1], ['day' => 2], ['day' => 3],];$res = array_filter($arr23, function ($element) { return $element['day'] == 2; //只保留数组中的day元素为天数
阅读全文
摘要:$insert[] = [ 'where' => $sv2['cpy_empcode1'], 'card_id' => $sv2['card_id'],]; $container = array();$result = array();$number = 1;foreach ($insert as
阅读全文
摘要:include_once "callback/WXBizMsgCrypt.php";(文件自行去企业微信文档里下载(https://work.weixin.qq.com/api/doc/90000/90138/90307))$inputXmlData = file_get_contents('php
阅读全文
摘要:// include_once "callback/WXBizMsgCrypt.php"; 文件自行去企业微信文档里下载(https://work.weixin.qq.com/api/doc/90000/90138/90307)//// // 企业号平台上设置的参数如下// $encodingAes
阅读全文
摘要://获取表单提交的压缩文件$file = $_FILES['file'];//获取文件名$name = $file['name'];//获取绝对路径$path = getcwd().'/';//定义文件保存路径$filepath= $path.'uploads/'.$name;//使用PHP函数移动
阅读全文
摘要:$data = Admin::offset($page(开始数))->limit($limit(返回条数))->get()->toArray();
阅读全文
摘要:PHP 自带的加密解密函数 目前经常使用的加密函数有:md5(), sha1(), crypt(), base64_encode(), urlencode() 。 其中 md5(), sha1(), crypt() 是不可逆的加密方式。 base64_encode() ,urlencode() 是可
阅读全文
摘要:phpstudy中设置: try_files $uri $uri/ /index.php?$query_string;(php的伪静态) try_files $uri $uri/ /index.html?$query_string;(html的伪静态) location ~* (runtime|ap
阅读全文
摘要:PHP版本微信支付开发 电脑网站扫码支付(native)(心得、总结) 此文章引用爱玲姐姐(如有意见联系课删除) 爱玲姐姐 早就听说微信支付比支付宝支付的坑多,但还得得该填的填,该绕的绕, 最终我们网站的微信支付功能成功上线啦♪(^ ∇ ^*) 首先自报家门,我的PHP版本是7,微信demo用的是p
阅读全文
摘要:PHP对接支付宝支付接口 (此文章引用 爱玲姐姐 如不同意联系可删除 ) PHP版本对接支付宝支付接口 其实理顺了思路后,按照我接下来的步骤来,真的超级简单啊,为啥有那么多的朋友们折腾了那么久呢,嘿嘿,接下来跟我走吧~ 一、下载SDK开发工具包 点击链接下载SDK&Demo 我下载的是PHP的Dem
阅读全文
摘要:前后端配合实现考试剩余时间: HTML布局 考试剩余时间: 复制代码 代码如下: <span id="hour">00</span>小时<span id="minute">00</span>分<span id="second">00</span>秒 JS脚本 1 2 3 4 5 6 7 8 9 10
阅读全文
摘要:1.安装(linux安装beanstalkd, windows暂不支持) # wget https://github.com/kr/beanstalkd/archive/v1.10.tar.gz # tar xzvf v1.10 # cd beanstalkd-1.10/ # make && mak
阅读全文
摘要:Maatwebsite / Laravel-Excel 扩展包导入导出数据 此文引用yangliuan(如有意见联系可以删除) yangliuan 2019年1月6日 文档 https://laravel-excel.maatwebsite.nl/3.1/getting-started/ githu
阅读全文
摘要:PHP实现微信开放平台扫码登录源码(微信第三方登陆) (此文章引用此人)金星show,如有意见联系我即可删除。 第一步:请求CODE 登录方倍工作室微信登录网站应用 http://weixin.fangbei.org/login.php 打开后,应用会生成state参数,跳转到以下链接:(登录前请注
阅读全文
摘要:首先去阿里云下载aliyun-php-sdk-core和aliyun-php-sdk-sts包(上个文章给出了阿里链接文档,里面有下载的地址)和 composer require alibabacloud/client与composer require alibabacloud/sdk(记得使用中国
阅读全文

浙公网安备 33010602011771号