摘要: 引入Excel第三方库 cd 到verdor/composer文件夹下 运行命令 composer require phpoffice/phpexcel 找到\vendor\composer\vendor\phpoffice\phpexcel\Classes 复制类到 extend/phpexcel 阅读全文
posted @ 2019-12-13 11:06 沧海一粒沙 阅读(237) 评论(0) 推荐(0)
摘要: 1 file_get_condents();一般做读取文件内容使用 大文件时可做分段读取 $content=file_get_contents("2.sql",FALSE,NULL,1024*1024,1024); 2 file_put_contents();存入文件内容,未搜索到文件则创建新文件 阅读全文
posted @ 2019-12-13 10:16 沧海一粒沙 阅读(330) 评论(0) 推荐(0)
摘要: 支付宝本地测试支付 使用沙箱环境实现 测试回调需要做一个内网穿透 1 进入ngrok官网 https://dashboard.ngrok.com https://ngrok.com ,注册ngrok账号并下载ngrok 2登录后复制授权码 cmd本地找到ngrok.exe文件位置运行 ngrok a 阅读全文
posted @ 2019-12-12 17:41 沧海一粒沙 阅读(1240) 评论(0) 推荐(0)
摘要: 1、前端header头部加入字段 header: { 'content-type': 'application/x-www-form-urlencoded', 'token': token, //token加密 'version': 'v1', //接口版本 }, 2、服务端加入字段 token,v 阅读全文
posted @ 2019-05-28 16:58 沧海一粒沙 阅读(668) 评论(0) 推荐(0)
摘要: 1、服务器判断预请求还是真实请求 if (strtoupper($_SERVER['REQUEST_METHOD']) == 'OPTIONS') { exit; } 2、指定本次预检请求的有效期,单位为秒。Access-Control-Max-Age: 1728000 ,有效期是20天(17280 阅读全文
posted @ 2019-05-28 16:49 沧海一粒沙 阅读(15782) 评论(0) 推荐(2)
摘要: <?phpnamespace Home\Controller; class GetWxUserController extends CommonController { protected $appid = "wxe4a16ab6c280178c"; protected $secret = "363 阅读全文
posted @ 2019-04-25 14:20 沧海一粒沙 阅读(1923) 评论(0) 推荐(0)
摘要: $where1 = array( 'uid' => array('eq', $id), 'type' => array('eq', 1), 'trade_type' => array('eq', 1), 'status' => array('in', array(2,3,4)) ); $where 阅读全文
posted @ 2019-01-18 15:36 沧海一粒沙 阅读(1136) 评论(0) 推荐(0)
摘要: system()运行时不报任何错误返回null 原因system被禁用 修改php.ini配置文件disable_functions等号后面system函数去掉 exec()运行时不报任何错误返回null 原因exec被禁用 修改php.ini配置文件disable_functions等号后面exe 阅读全文
posted @ 2019-01-18 10:00 沧海一粒沙 阅读(227) 评论(0) 推荐(0)
摘要: Linux集成 宝塔 wdcp 1、wdcp安装首先看服务器环境是否复合wdcp安装要求 查看Linux服务器版本信息 cat /etc/redhat-release 安装支持系统:CentOS 5.X/wdlinux_base 5.X/wdOS 1.0,CentOS 6.X ,32位,64位均支持 阅读全文
posted @ 2018-12-20 17:17 沧海一粒沙 阅读(607) 评论(0) 推荐(0)
摘要: DELIMITER | DROP PROCEDURE IF EXISTS e_test |CREATE PROCEDURE e_test() BEGIN update hb_hongbao set addtime=SYSDATE(15) where SYSDATE(15)>over_time and 阅读全文
posted @ 2018-12-19 13:10 沧海一粒沙 阅读(1797) 评论(0) 推荐(0)