类别 : 后端技术
在配置好宝塔面板ftp后,发现登录不上。首先我们要排查以下内容:检查ftp服务是否启动检查防火墙20端口 ftp 21端口及被动端口39000 - 40000是否放行 (如是腾讯云/阿里云等还需检查安...
json_encode 返回falsevar_dump(json_encode($array));通过json_last_error_msg查看报错原因echo json_last_error_msg...
找到不是root用户的7天前访问的文件并删除find /tmp -type f \( ! -user root \) -atime +7 -delete如上命令创建一个脚本tmp.clean.sh文件...
#change_cover input{ font-size: 0;//解决按钮展示手型 cursor: pointer;}/*解决无法点击问题*/#change_cover div:nth-...
最近使用thinkphp6获取参数会附加上链接路径,造成插入数据报错Options +FollowSymlinks -MultiviewsRewriteEngine onRewriteCond %{R...
个人使用Thinkphp6绑定应用访问url生成的链接报错,去掉应用名访问正常,Thinkphp官方手册说明:自动多应用模式下,路由是每个应用独立的,所以你没法省略URL里面的应用参数。但可以使用域名...
$where=[];if(!empty($post['id'])){ $where[]=['id','',$post['id']]...
preg_replace('/.(?=.{4})/','*','sdkajkfdjhkh')
//判断远程资源是否存在function resource_exists($url){ $res =get_headers( $url ); $statusCode = substr ( ...
Error at offset有可能是编码的问题可以自定义函数解决function diy_unserialize($str){ $str=preg_replace_callback('...
nginx报502错误有的时候是PHP代码语法错误 ,在nginx下无法显示详细错误我们可以找到/www/server/php/73/etc/php-fpm.conf文件
一、管理端口列出 dmz 级别的被允许的进入端口# firewall-cmd --zone=dmz --list-ports允许 tcp 端口 8080 至 dmz 级别# firewall-cmd ...
有关用户登录的信息记录在 utmp(/var/run/utmp)、wtmp(/var/log/wtmp)、btmp(/var/log/btmp) 和 lastlog(/var/log/lastlog)...
apache实现方式: Options +FollowSymlinks -Multiviews RewriteEngine On RewriteRule upload/(.*).(php)$ - [...
public function s404(){ http_response_code(404);// return $this->fetch('portal@/404...
// $val = $currentSheet->getCellByColumnAndRow($currentColumn, $currentRow)->getValue();// ...
在不进行特殊设置的情况下,phpExcel将读取的单元格信息保存在内存中,我们可以通过PHPExcel_Settings::setCacheStorageMethod()来设置不同的缓存方式,已达到降...
function _getCountDays($sTime, $eTime){ $startDt = getdate($sTime); $endDt = getdate($eTime); ...
如果需要对复杂的条件验证唯一,可以使用下面的方式:// 多个字段验证唯一验证条件'name' => 'unique:user,status^account',// 复...
参考:https://www.kancloud.cn/zoujingli/wechat-developer/521163 $jine = $this->request->param(...