已按照作者的介绍配置,但是还是会提示重定向次数过多导致安装失败1、找到使用的PHP版本,并注释如使用7.0版本,路径如:/www/server/nginx/conf/enable-php-70.conf注释 pathinfo.conf location ~ [^/]\.php(/|$) { try_files $uri =404; fastcgi_pass unix:/tmp/php-cgi-70.sock; fastcgi_index index.php; include fastcgi.conf; # include pathinfo.conf; }问题解决

杂谈 2020-06-15

备份navicat数据库连接信息,导入后需要输入密码才可以连接数据库<?php class NavicatPassword { protected $version = 0; protected $aesKey = 'libcckeylibcckey'; protected $aesIv = 'libcciv libcciv '; protected $blowString = '3DC5CA39'; protected $blowKey = null; protected $blowIv = null; public function __construct($version = 12) { $this->version = $version; $this->blowKey = sha1('3DC5CA39', true); $this->blowIv = h

后端 2020-04-11

月初到月末时间戳$y = date("Y", time()); //年 $m = date("m", time()); //月 $d = date("d", time()); //日 $t0 = date('t'); // 本月一共有几天 $start_month = mktime(0, 0, 0, $m, 1, $y); // 本月开始时间戳 $end_month = mktime(23, 59, 59, $m, $t0, $y); // 本月结束时间戳时间戳//获取今日开始时间戳和结束时间戳 $beginToday=mktime(0,0,0,date('m'),date('d'),date('Y')); $endToday=mktime(0,0,0,date('m'),date('d')+1,date('Y'))-1; //获取昨日起始时间戳和结束时间戳 $

后端 2020-01-07

CentOS系统服务器安装的宝塔环境,composer安装依赖提示当前服务器php版本为7.0,安装的依赖需要7.1以上先删除rm -f /usr/bin/php再将版本改成7.2ln -sf /www/server/php/72/bin/php /usr/bin/php

远程仓库一直正常使用,近期在服务器拉远程仓库代码的时候报错error: The requested URL returned error: 401 Unauthorized while accessing https://gitee.com/imxgr/console.git/info/refs fatal: HTTP request failed网上找了一些提供的解决办法,最终使用更换远程地址这个办法解决,记录一下git remote set-url origin https://xuguorui@gitee.com/imxgr/console.git

杂谈 2019-11-21

常用到的几个模糊匹配的方法实例<div> <input id="id1" type="text" name="name1" value="1" id_temp="haha"/> <input id="id2" type="text" name="name2" value="2"/> <input id="id3" type="text" name="name3" value="3" /> <input id="id4" type="text" name="name4" value="4"/> </div>1、利用id获得id1的value值var i

前端 2019-11-04

公司使用的软件供应商的软件只开发了备份功能,没有覆盖和定时删除,磁盘经常会占满,需要手动删除,便有了这个需求。A*.zip 开头为A的.zip文件-6 6天前文件@echo off forfiles /p D:\test /m A*.zip /d -6 /c "cmd /c del @path"

杂谈 2019-10-23

使用json_decode把json字符串转化为数组返回null,使用json_last_error()打印出错误码解决方案一、bom头问题json字符串中的BOM头是不可见字符,某些编辑器默认会加上BOM头。<?php $info = json_decode(trim($info,chr(239).chr(187).chr(191)),true);二、语法错误出现这个问题是因为在 json 字符串中反斜杠被转义,只需要用 htmlspecialchars_decode() 函数处理一下 $content 即可:<?php $info= htmlspecialchars_decode($info);三、其他破坏json字符串的字符<?php $info= preg_replace('/[\x00-\x1F\x80-\x9F]/u', '', trim($info));

后端 2019-10-15

收藏 /** * ....................阿弥陀佛....................... * _ooOoo_ * o8888888o * 88" . "88 * (| -_- |) * O\ = /O * ____/`---'\____ * . ' \\| |// `. * / \\||| 2 |||// \ * / _||||| -0- |||||- \ * | | \\\ 1 /// | | *

杂谈 2019-09-28

1、先确认哪个php版本使用此扩展,本人使用的是7.0,在宝塔中7.0的路径默认为 /www/server/php/70/2、安装msgpack扩展wget https://pecl.php.net/get/msgpack-2.0.3.tgz tar zxvf msgpack-2.0.3.tgz cd msgpack-2.0.3 /www/server/php/70/bin/phpize ./configure --with-php-config=/www/server/php/70/bin/php-config make && make install3、msgpack安装完成后,在php7.0的配置文件中加上extension = /www/server/php/70/lib/php/extensions/no-debug-non-zts-20151012/msgpack.so4、下载安装yar扩展wget https://pecl.php.net/get/yar-2.0.5.tgz tar zxvf yar-2.0.5.tgz cd yar-2.0.5 /www/

后端 2019-09-12