![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php 杂类
鹿人贾
这个人好懒,什么都没有留下
展开
-
thinkphp 与微信数据回调
需要使用官方推荐的“加解密库及返回码”(php)下载地址如下:https://github.com/sbzhu/weworkapi_php/tree/master/callback或者https://qydev.weixin.qq.com/download/php.zip错误码调试工具:https://open.work.weixin.qq.com/devtool/query?e=50001接口调试工具:https://open.work.weixin.qq.com/wwopen/dev...原创 2021-05-08 11:17:37 · 272 阅读 · 0 评论 -
cookies 和session 之间的关系
原创 2021-04-06 16:52:55 · 61 阅读 · 0 评论 -
wampsever 安装redis
首先说坑,上面框起来的四点一定要注意,要不就不成功的。进入https://windows.php.net/downloads/pecl/releases/redis/2.2.7/下载对应版本的php_redis.dll。上图的Thread Safety如果是enabled则下图选择ts,否则就选择nts。将下载好的php_redis.dll放入E:\wamp64\bin\p...原创 2020-04-27 17:13:41 · 167 阅读 · 0 评论 -
PHP通过地址获取经纬度【百度地图API】
/*** @param string $address 地址* @param string $city 城市名* @return array*/function getLatLng($address='',$city=''){ $result = array(); $ak = '';//您的百度地图ak,可以去百度开发者中心去免费申请 $url ="...转载 2020-01-14 09:25:34 · 284 阅读 · 0 评论 -
php curl
function curl_post($url , $data=array()){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_...原创 2020-01-06 11:29:06 · 121 阅读 · 0 评论 -
php 获取全年节假日(二 )
<?phpnamespace Home\Controller;use Think\Controller;class JiejiariController extends Controller { public function index(){ $Jiejiari = file_get_contents("http://www.easybots....原创 2019-12-19 16:27:02 · 1878 阅读 · 0 评论 -
百度人脸识别 base64编码
function base64EncodeImage($image_path) {$base64_image = '';$image_data = fread(fopen($image_path, 'r'), filesize($image_path));$base64_image = chunk_split(base64_encode($image_data));return $...原创 2019-12-12 17:28:24 · 2292 阅读 · 0 评论 -
正则-转发
废话少说,直接开始学习!一、元字符元字符是构造正则表达式的一种基本元素。. :匹配除换行符以外的任意字符w:匹配字母或数字或下划线或汉字s:匹配任意的空白符d:匹配数字b:匹配单词的开始或结束^:匹配字符串的开始$:匹配字符串的结束匹配有abc开头的字符串:abc或者^abc匹配8位数字的QQ号码:^dddddddd$匹配1开头11位数字的手机...转载 2019-11-20 10:04:32 · 145 阅读 · 0 评论