随笔分类 - thinkphp5
摘要:1、数组转字符串 implode 方法介绍: 主要有两个参数 一个是连接符(glue:胶水的意思),默认是空字符串 一个是数组 使用 结果: hello-world-php 2、字符串分割成数组 2.1 按某个字符分割 explode 参数解释: delimiter,分隔符 limit 文档goog
阅读全文
摘要:get_onlineip(); }else{ return $tip; } } ////获得本地真实IP function get_onlineip() { $mip = file_get_contents("http://city.ip138.com/city0.asp"); if($mip){ ...
阅读全文
摘要:function excel_down(){ //导入谁就去查谁 $data=Db::name('order_xueyou')->select(); // 导出Exl // import("./PHPExcel"); // import("./PHPExcel/Workshe...
阅读全文
摘要:button:function(e){ wx.startRecord({ success: function (res) { voice = res.tempFilePath }, fail: function (res) { //录音失败 } }) }, stop:func...
阅读全文
摘要:* 1.微信退款到零钱要求必传证书,需要到https://pay.weixin.qq.com 账户中心->账户设置->API安全->下载证书,然后修改代码中的证书路径 * 2.该文件需放到支付授权目录下,可以在微信支付商户平台->产品中心->开发配置中设置。 * 3.如提示签名错误可以通过微信支付签
阅读全文
摘要:目前测试180万多的数据,大概是正常的,不知道再多了会怎么样了我们要给表改成 innodb类型 干货来了: set_time_limit(0); ini_set("memory_limit","800M");//180万数据 数据越多越消耗内存 $t1 = microtime(true); $Mod
阅读全文
摘要:将自己下载下来的短信库放入extend下(阿里大于:https://help.aliyun.com/document_detail/55359.html?spm=a2c4g.11186623.2.8.2cc53a76oPizZF) <?php namespace auth; require_once
阅读全文