11月2020
nginx 反向代理设置
#PROXY-START/
location ~* \.(php|jsp|cgi|asp|aspx)$
{
proxy_pass http://14.192.48.28;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_ad...阅读全文
评论:0条
11月2020
windows git相关 curl清除代理等
翻墙后自动在ie的局域网设置里加了本地代理端口
导致后面在命令行执行curl时总是经过本地代理
如下临时清除
export -p //查找是否有ftp_proxy、http_proxy、https_proxy
如有
export -n http_proxy //即可在本次shell中不...阅读全文
评论:0条
11月2020
php设置断点续传下载文件
<?php
$file = $_GET['file'];
$localPath=dirname(__FILE__).'/shutt/'.$file;
if(file_exists($localPath)){
$obj = new FileDownload();
$flag = $obj->downl...阅读全文
评论:0条
11月2020
php curl 断点续传文件
function download($url,$id,$cookie,$format){
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,TRUE);//是否直接显示内容
curl_setopt($ch, CURLOPT_TIMEOUT, 50);
...阅读全文
评论:0条
11月2020
js 判断是否微信小程序浏览器打开
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
var ua = navigator.userAgent;
if (ua.match(/MicroMessenger/i...阅读全文
评论:0条
11月2020
Apache cgi模式 phpstudy 40s返回500问题
以下代码加到http.conf即可
<IfModule mod_fcgid.c>
FcgidProcessLifeTime 8200
FcgidIOTimeout 8200
FcgidConnectTimeout 4000
</IfModule>
相关资料...阅读全文
评论:0条
10月2020
正则过滤textarea空格换行
正则过滤textarea空格换行
ids.replace(/^\s+|\s+$/g,'').replace(/^(\r\n)+|(\r\n)+$/g,'').replace(/^(\r)+|(\r)+$/g,'').replace(/^(\n)+|(\n)+$/g,'').replace(/\r\n/g, '|').replace(/\...阅读全文
评论:0条
10月2020
10月2020
8月2020
左下角音乐播放器 支持网易云音乐歌单
<!-- 音乐播放器 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css">
<div class="aplayer" data-id="2440040711" dat...阅读全文
评论:0条







