首页
📷在线壁纸
🎬娱乐天地
🔖友情链接
更多
📝留言板
Search
1
【javascript】JS-向当前url追加参数
2,345 阅读
2
【PHP】生成随机昵称
2,219 阅读
3
【PHP】判断一个字符串是否属于序列化后的数据
2,024 阅读
4
【css】html+css给文章页,做阅读全文
1,975 阅读
5
【PHP】 设计模式(23种)
1,910 阅读
📂默认分类
💓typecho
🏳️🌈代码改变世界
🍇 mysql
🍈 Winform
🍓 golang
🍉 设计模式
🥝 PHP
🍎 python
🍊 nginx
🍋 网络安全
🍍 javascript
🫑 database
🍭文艺范
🍏mac
AI
LLM
image
audio
yolo
3D
code
登录
Search
标签搜索
php
typecho
代码注释
redis
mysql
go
golang
nginx
thinkphp
docker
gin
linux
curl
html
mamp
算法
短网址
构造函数
webhook
代码片段
依然范儿特西
累计撰写
145
篇文章
累计收到
1
条评论
首页
栏目
📂默认分类
💓typecho
🏳️🌈代码改变世界
🍇 mysql
🍈 Winform
🍓 golang
🍉 设计模式
🥝 PHP
🍎 python
🍊 nginx
🍋 网络安全
🍍 javascript
🫑 database
🍭文艺范
🍏mac
AI
LLM
image
audio
yolo
3D
code
页面
📷在线壁纸
🎬娱乐天地
🔖友情链接
📝留言板
搜索到
145
篇与
的结果
2023-04-19
Typecho 底部增加蓝色波浪样式
在footer.php 底部 合适位置增加以下代码 <!--底部波浪开始--> <div class="wiiuii_layout"> <svg class="editorial" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 24 150 28" preserveAspectRatio="none"> <defs> <path id="gentle-wave" d="M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z" /> </defs> <g class="parallax"> <use xlink:href="#gentle-wave" x="50" y="0" fill="#0080FF" /> <use xlink:href="#gentle-wave" x="50" y="6" fill="#0066CC" /> <use xlink:href="#gentle-wave" x="50" y="9" fill="#003D79" /> </g> </svg> </div> <style type='text/css'> .parallax > use{animation: move-forever 12s linear infinite;}.parallax > use:nth-child(1){animation-delay: -2s;}.parallax > use:nth-child(2){animation-delay: -2s; animation-duration: 5s;}.parallax > use:nth-child(3){animation-delay: -4s; animation-duration: 3s;}@keyframes move-forever{0%{transform: translate(-90px, 0%);} 100%{transform: translate(85px, 0%);}}.wiiuii_layout{width: 100%;height: 40px;position: relative;overflow: hidden;z-index: 1;background: var(--footer-bg);}.editorial{display: block; width: 100%; height: 40px; margin: 0;} </style> <!--底部波浪结束-->
2023年04月19日
20 阅读
0 评论
0 点赞
2023-04-19
typecho 底部增加好久不见样式
好久不见之本站同款网站底部样式,效果见本站。修改footer.php首先,在页脚文件footer.php文件的最下面放入以下代码: <!-- 好久不见 --> <div class="chenyuyc"> <div class="footer-fav"> <div class="container"> <div class="fl site-info"> <h2><a href="https://www.richerdyoung.com/" target="_blank">依然范儿特西</a></h2> <div class="site-p"> <p>范特西【白茶清欢无别事,我在等风也等你】</p> <p id="chenyutime">风风雨雨 <strong class="joe_run__day">00</strong> 天 <strong class="joe_run__hour">00</strong> 时 <strong class="joe_run__minute">00</strong> 分,你是第<?php echo theAllViews();?>位相遇的小伙伴</p> </div> </div> <div class="fr site-fav"> <a href="https://www.richerdyoung.com/" class="btn btn-fav btn-orange">Ctrl+D收藏本站</a></div> <div class="site-girl"> <div class="girl fl"> <i class="thumb " style="background-image:url(https://jsd.ucbk.cn/gh/cy-j/chenyu/img/cyxy.png);"></i> </div> <div class="girl-info hide_md"> <h4>绿水本无忧,因风皱面</h4> <h4>青山原不老,为雪白头</h4> </div> </div> </div> </div> </div>2.修改include.php<link rel="stylesheet" href="https://jsd.ucbk.cn/gh/cy-j/chenyu@1.6.0/css/cydibu.min.css"> <link rel="stylesheet" href="https://jsd.ucbk.cn/gh/cy-j/chenyu/css/bootstrap-grid.min.css"> 3.在core.php最下面添加//门前大路上,走过一群小伙伴,快来数一数:2,4,6,7,8…… function theAllViews() { $db = Typecho_Db::get(); $row = $db->fetchAll('SELECT SUM(VIEWS) FROM `typecho_contents`'); echo number_format($row[0]['SUM(VIEWS)']); } 4 JOE主题 footer.php 里边。删除原来的 <?php if ($this->options->JBirthDay) : ?> <div class="item run"> <span>已运行 <strong class="joe_run__day">00</strong> 天 <strong class="joe_run__hour">00</strong> 时 <strong class="joe_run__minute">00</strong> 分 <strong class="joe_run__second">00</strong> 秒</span> </div> <?php endif; ?> 5 注意全局设置中 要设置网站的开始时间
2023年04月19日
19 阅读
0 评论
1 点赞
2023-04-19
让Typecho 支持Emoji表情,解决报错:database query error
在mysql 中,UTF-8支持最多8个字节,而emoji是四个字节,所以要改一下编码为 utf-8mb4
2023年04月19日
23 阅读
0 评论
1 点赞
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日
134 阅读
0 评论
1 点赞
2023-02-15
大文件上传解决方案
大文件上传解决方案
2023年02月15日
26 阅读
0 评论
0 点赞
2023-02-15
redis如何提高缓存命中率
redis如何提高缓存命中率
2023年02月15日
49 阅读
0 评论
0 点赞
2023-02-06
无法启动 Parallels Desktop,因为您的 Mac 操作系统缺少一些必需组件
无法启动 Parallels Desktop,因为您的 Mac 操作系统缺少一些必需组件
2023年02月06日
301 阅读
0 评论
2 点赞
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日
29 阅读
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日
60 阅读
0 评论
1 点赞
2022-12-01
网站置灰样式代码
代码<style> html{filter: grayscale(1);} </style>
2022年12月01日
34 阅读
0 评论
0 点赞
1
2
3
4
...
15