//$year 年 //$month 月 public function monthDate($year,$month){ $monthDate = array(); $mtime = strtotime($year.
使用stripslashes函数 去除反斜杠$jsonData = json_decode(stripslashes($param['data']),true);
php取整数函数常用的四种方法:1.直接取整,舍弃小数,保留整数:intval();2.四舍五入取整:round();3.向上取整,有小数就加1:ceil();4.向下取整:floor()。一、intval—对变数转成整数型态intval如果是字符型的会自动转换为0。intval(3.14159); //&n
每次搞微信支付都要翻微信开发文档,相当繁锁,有几个文档,还有点不一样,这次理清楚记录一下微信支付开发文档 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=9_1&index=1微信支付接口签名校验工具  
1 服务器配置设置与开发-》基本配置2 获取access_token//$this->appid 微信appid //$this->AppSecret 微信AppSecret public
html<div> 上传<input id="myfile" type="file" name="myfile"/> </div> <div>上传进度:<span&nbs
接收get参数echostr,原样返回就可以了,至于要不要验证请参考官网//服务器配置验证 if(input('get.echostr')){ return input('get.echostr'); }
在pages下 添加types目录,在添加index.d.ts declare module声明引入的模块
html <div class="a"> 上传<input id="myfile" type="fil
E:\WWW\51c\config\app.php // 默认全局过滤方法 用逗号分隔多个 'default_filter' => 'htmlspecialchars,a
修改文件\vendor\topthink\think-image\src\Image.php修改$color = imagecolorallocate($img, 255, 255, 255);为$color = imagecolorallocatealpha($img, 0, 0, 0, 127);
改成*.51zuzo.com 或 http://test.51zuso.com 51zuso.com改成你的域名哈
又是一种蒙B的新型报错微信支付突然显示调用支付JSAPI缺少参数:appld,之前是正常的,代码一顿检查,每个返回结果输出查看发现根据提示看到
阿里云oss帐号方面搞得比较复杂,关系层层嵌套,也是最烦人的地方,简单的事搞得这么复杂!!首先需要理清楚 用户、角色、权限 这三个关系,创建流程1 创建用户2 为该用户添加 AliyunOSSFullAccess 权限 (调用STS服务AssumeRole接口的权限)ps: 意思应该就是
文件位置:/vendor/topthink/framework/src/think/middleware/AllowCrossDomain.php添加sign参数
例在index 注册路由app/index/route/app.phpRoute::get('index', 'index/index');如果在,注册的路由是有效的/route/app.phpRoute::get('index', 'index/index');解决办法在,绑定对应域
1 composer安装 tp6composer create-project topthink/think tp2 安装多应用composer require topthink/think-multi-app3 重命名exaple.env 为 .e
主要实现代码<?php namespace tool\emai; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; class Email {
//保留textarea格式 //$str 文本字符串 function textPre($str){ $str = str_replace("\r\n",'<br/>',$str); $str = str_replace("&n
配置文件路径指定runtime文件夹里的文件都不上传
admin
seo
ljd
51zuso_70
haotao99
51zuso_77