首页
留言板
友情链接
Search
1
【javascript】JS-向当前url追加参数
2,327 阅读
2
【PHP】生成随机昵称
2,188 阅读
3
【PHP】判断一个字符串是否属于序列化后的数据
2,017 阅读
4
【css】html+css给文章页,做阅读全文
1,957 阅读
5
【PHP】 设计模式(23种)
1,898 阅读
默认分类
typecho
代码改变世界
mysql
Winform
go
设计模式
PHP
python
nginx
网络安全
文艺范
mac
Search
标签搜索
php
typecho
代码注释
mysql
redis
nginx
golang
docker
html
curl
linux
go
thinkphp
mamp
laravel
跨域
http
rsa
sql
酒
依然范儿特西
累计撰写
122
篇文章
累计收到
26
条评论
首页
栏目
默认分类
typecho
代码改变世界
mysql
Winform
go
设计模式
PHP
python
nginx
网络安全
文艺范
mac
页面
留言板
友情链接
搜索到
122
篇与
依然范儿特西
的结果
2023-03-24
国内外接收短信验证码平台网站
注意:无法打开的话,可能是你的姿势不对,调整你的姿势,再试一次网站地址描述SMS-Activatehttps://sms-activate.org注册ChatGPT推荐免费接收短信http://www.shejiinn.com中国、缅甸Z-SMShttp://z-sms.com中国、美国、缅甸、爱沙尼亚免费接收短信http://www.smszk.com中国在线接收短信https://www.becmd.com美国、中国在线短信接收https://www.pdflibr.com美国、中国、菲律宾MyTrashmobilehttps://zh.mytrashmobile.com美国、英国、加拿大FreePhonenumhttps://ch.freephonenum.com美国、加拿大(支持免费发短信)ReceiveSMShttps://www.receivesms.co/奥地利、比利时、加拿大、瑞士、丹麦、西班牙、英国、意大利、拉脱维亚、波兰、葡萄牙、瑞典、美国Receive SMShttp://receivesmsverification.com比利时、英国、美国Receive Online SMShttp://receiveonlinesms.biz美国、瑞典、挪威、西班牙、英国Receive Free SMShttp://www.freesmsverifications.com美国、英国、法国、波兰、比利时、加拿大SMS-Receivehttps://sms-receive.net俄罗斯、法国、罗马尼亚、西班牙、荷兰、英国Receive-SMS-Nowhttp://www.receive-sms-now.com美国、加拿大、荷兰Receive SMS Onlinehttp://receivesmsonline.in美国、加拿大、西班牙Receive-SMS-Nowhttp://receivefreesms.net美国、加拿大、西班牙SMSReceiveFreehttps://smsreceivefree.com美国、英国、加拿大Receive SMS Online for FREEhttps://www.receive-sms-online.info英国、罗马尼亚、美国、西班牙、法国、德国、俄罗斯Receive a SMS Onlinehttps://receive-a-sms.com美国、澳大利亚、挪威、奥地利、巴西、香港、南非、波兰、英国、加拿大Free SMS Numbers Onlinehttps://smsnumbersonline.com美国、英国、加拿大、波兰Receive SMS online for Freehttps://sms-online.co/receive-free-sms美国、英国、加拿大、瑞典、法国、马来西亚、印度尼西亚Receive-SMShttps://receive-sms.com美国Receive FREE SMS onlinehttp://receivefreesms.com美国、英国、挪威、瑞典、荷兰、澳大利亚、匈牙利、立陶宛、香港等RECEIVE SMS ONLINEhttps://www.receivesmsonline.net美国、加拿大、英国Free Online Phonehttps://www.freeonlinephone.org美国、加拿大、英国、瑞典Receive SMS Onlinehttp://receive-sms-online.com俄国、英国、乌克兰TextNowhttps://www.textnow.com美国Textfreehttps://www.pinger.com/text-free/ SELLAITEhttp://sms.sellaite.com爱沙尼亚Twilihttps://www.twilio.com支持API调用,看上去很不错
2023年03月24日
10 阅读
0 评论
1 点赞
2023-02-15
大文件上传解决方案
大文件上传解决方案
2023年02月15日
18 阅读
0 评论
0 点赞
2023-02-15
redis如何提高缓存命中率
redis如何提高缓存命中率
2023年02月15日
25 阅读
0 评论
0 点赞
2023-02-06
无法启动 Parallels Desktop,因为您的 Mac 操作系统缺少一些必需组件
无法启动 Parallels Desktop,因为您的 Mac 操作系统缺少一些必需组件
2023年02月06日
56 阅读
0 评论
1 点赞
2022-12-15
PHP解析小程序返回的buffer信息,并解析成图片
需要引入 GuzzleHttp 包composer require guzzlehttp/guzzle核心代码如下:<?php require __DIR__ . './vendor/autoload.php'; use GuzzleHttp\Client; use GuzzleHttp\Exception\GuzzleException; /** * get client * @return Client */ function httpGetClient() { static $client ; if (!$client) { $client = new Client(); } return $client; } //GET function httpGet($url) { $client = httpGetClient(); $options = [ 'verify' => false, ]; $response = $client->get($url,$options); return $response->getBody()->getContents(); } // POSTBODY function httpPostBody($url, $requestData=[], $header=[]) { $client = httpGetClient(); $options = [ 'headers' => $header, 'body' => json_encode($requestData,JSON_UNESCAPED_UNICODE ), 'verify' => false, ]; $response = $client->post($url, $options); if ($response->getStatusCode()==200) { return $response->getBody()->getContents(); }else{ return null; } } //postForm function httpPostForm($url, $requestData, $header) { $client = new Client(['verify' => false]); try { $response = $client->request('post', $url, ['form_params' => $requestData, 'headers' => $header]); $response->getStatusCode(); // 200 $response->getHeaderLine('content-type'); if ($response->getStatusCode()==200) { return [true,$response->getBody()->getContents()]; }else{ return [false,[]]; } } catch (GuzzleException $e) { } return [false,[]]; } function getAccessToken(){ $appid = ''; $secret = ''; //获取access_token $access_token_url = 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid='.$appid.'&secret='.$secret; $access_token_data = httpGet($access_token_url); $access_token_data = json_decode($access_token_data,true); return $access_token_data['access_token']; } function getQrcode($access_token){ $url = 'https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token='.$access_token; $requestData = [ 'path'=>'pages/order-status/index?loose_id=1', 'width'=>430, ]; $header = []; return httpPostBody($url,$requestData,$header); } $access_token = getAccessToken(); //$access_token = ""; $data = getQrcode($access_token); if(is_null(json_decode($data))){ //不是json数据, 有数据流,返回值为null $jpg = $data; //创建文件写入 $file = fopen("img/test.jpg",'w'); fwrite($file,$jpg); fclose($file); }else{ //不是数据流,则代表有错误发生 $data_array = json_decode($data,true); print_r($data_array); } ?> 如果提示你无法写入, 记得新建一个文件夹: img ,并给可写权限
2022年12月15日
24 阅读
0 评论
1 点赞
2022-12-06
window下 phpstudy+nginx报错502的处理办法
1 开启日志修改nginx 日志级别, 开启错误日志和访问日志2 端口检测查看 80 端口和 9000 端口占用情况, 大部分是因为 9000端口被占用导致# 查看所有的端口 netstat -ano # 查询指定的端口占用,在命令行输入: netstat -aon | findstr 端口号 # 查询PID对应的进行进程: tasklist | findstr PID #关闭程序: taskkill /f /t /im 程序名
2022年12月06日
43 阅读
0 评论
1 点赞
2022-12-01
网站置灰样式代码
代码<style> html{filter: grayscale(1);} </style>
2022年12月01日
31 阅读
0 评论
0 点赞
2022-12-01
thinkphp3.2 AuthBehavior.class中,使用session无效原因分析
背景在开发中。 创建了一个 AuthBehavior.class 在做全局的权限验证, 里边会读取session, admin_id, 结果是读取失败原因在AuthBehavior.class这个类中,使用session的时候,session_start()还没有执行,所以无法读取;过程分析:关于 behavior 文件加载,程序执行过程大概是这样index.php -> 应用开始(app_begin)标签位侦听并执行绑定行为 -> session启动 -> 控制器开始(action_begin)标签位侦听并执行绑定行为解决办法第一种: 修改tags.php文件'app_begin' => array('Behavior\AuthBehavior'), 修改为 'action_begin' => array('Behavior\AuthBehavior'), 第二种: 偏方:在index.php就启用session_start(); 但是这样有一个问题,就是配置文件里面的那些改变session配置的参数可能及不起作用了(例如session前缀 SESSION_PREFIX) 提示:session函数位置 ThinkPHP\Common\functions.php参考文章:https://www.kancloud.cn/manual/thinkphp/1704
2022年12月01日
25 阅读
0 评论
1 点赞
2022-11-30
解决thinkphp5 session失效问题
1 index.php//定义session 保存目录 define('SESSION_SAVE_PATH',__DIR__.'./runtime/session/');2 config.php 增加session的保存目录 path // +---------------------------------------------------------------------- // | 会话设置 // +---------------------------------------------------------------------- 'session' => [ 'id' => '', // SESSION_ID的提交变量,解决flash上传跨域 'var_session_id' => '', // SESSION 前缀 'prefix' => 'laofan_', // 是否自动开启 SESSION 'auto_start' => true, //有效期 'expire' => 86400, // 驱动方式 'type' => '', 'path'=>SESSION_SAVE_PATH, ],
2022年11月30日
31 阅读
0 评论
0 点赞
2022-11-28
golang字符串切割
//定义一个字符串和相应map str := "PHP 是 世 界 上 最 好 的 编 程 语 言" map1 := make(map[string]int) //进行切割,此处成为[]string,并进行排序,方便后面直接计数 str2 := strings.Split(str, " ") sort.Strings(str2) for i := 0; i < len(str2); i++ { count := 1 for j := i + 1; j < len(str2); j++ { if str2[j] == str2[i] { count++ i = j } } map1[str2[i]] = count } fmt.Println(map1)
2022年11月28日
27 阅读
0 评论
0 点赞
1
2
...
13