摘要: <?php //用php从身份证中提取生日,包括15位和18位身份证 function getIDCardInfo($IDCard){ $result['error']=0;//0:未知错误,1:身份证格式错误,2:无错误 $result['flag']='';//0标示成年,1标示未成年 $res 阅读全文
posted @ 2023-03-24 15:28 田宝宝 阅读(63) 评论(0) 推荐(0) 编辑
摘要: /** * 功能:获取小程序access_token * Author:郑康凯 * Date: 2023/2/6 0006 15:14 */ public function hhsGetAccessToken() { // access_token 应该全局存储与更新,以下代码以写入到文件中做示例 阅读全文
posted @ 2023-02-06 17:12 田宝宝 阅读(310) 评论(0) 推荐(0) 编辑
摘要: /** * 判定某天是否是假期 * $date 格式“2018-8-8” 默认为当天 * return true 假日,false 上班 * Evin * 2018.3.15 */function _today_is_holiday($date = false){ if (!$date) { $da 阅读全文
posted @ 2022-11-14 18:52 田宝宝 阅读(47) 评论(0) 推荐(0) 编辑
摘要: .htaccess文件写入类容放到跟目录下就OK <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond 阅读全文
posted @ 2022-11-01 09:06 田宝宝 阅读(11) 评论(0) 推荐(0) 编辑
摘要: server { listen 80; server_name www.cqtldd.com cqtldd.com; root "D:/phpstudy_pro/WWW/tongliangdx/source"; location / { index index.php index.html erro 阅读全文
posted @ 2022-10-18 17:38 田宝宝 阅读(119) 评论(0) 推荐(0) 编辑
摘要: PHP后台调用微信支付下单function wx_getPayRequest($openid, $orderid, $rmb, $title,$appoids){ $nonce = $orderid.mt_rand(10000,99999); $orderid=$orderid.'_'.$nonce 阅读全文
posted @ 2022-08-10 11:00 田宝宝 阅读(665) 评论(0) 推荐(0) 编辑
摘要: 1、新建文件夹 2、使用命令git init 初始化 3、见你与远程厂库的连接,git remote add origin 远程仓库地址 4、将远程仓库代码拉去到本地,git fetch origin develop(以develop分支为例),第一次会填写账号密码 5、创建本地对应分支并切换到该分 阅读全文
posted @ 2022-06-02 11:25 田宝宝 阅读(352) 评论(0) 推荐(0) 编辑
摘要: /** * CURL方法 * @param type $url * @param type $https * @param type $method * @param type $data * @return type */public function request($url, $https = 阅读全文
posted @ 2019-11-27 17:54 田宝宝 阅读(267) 评论(0) 推荐(0) 编辑
摘要: /** * 生成签名 * @param $data * @return bool|string */public function sign($data){ $configFilePath='application/admin/certificate/yinqizhiliantest.pfx';// 阅读全文
posted @ 2019-11-26 16:09 田宝宝 阅读(562) 评论(0) 推荐(0) 编辑
摘要: 一,概念 memcached是一个不错的缓存技术,Memcached是danga.com开发的一套分布式内存对象缓存系统,用于在动态系统中减少数据库负载,提升性能。 二、执行实现原理 Memcached有两个核心组件组成,服务端(ms)和客户端(mc)。首先mc拿到ms列表,并对key做hash转化 阅读全文
posted @ 2018-08-17 10:49 田宝宝 阅读(173) 评论(0) 推荐(0) 编辑