因为我们不能复制一些文件,升级未被安装。这通常是因为存在不一致的文件权限。
wp-includes/category-template.php 安装失败
学习日志 LIUGUOFENG
因为我们不能复制一些文件,升级未被安装。这通常是因为存在不一致的文件权限。
wp-includes/category-template.php 安装失败
$str=preg_replace("/\s+/", " ", $str); //过滤多余回车 $str=preg_replace("/<[ ]+/si","<",$str); //过滤<__("<"号后面带空格) $str=preg_replace("/<\!--.*?-->/si","",$str); //注释 $str=preg_replace("/<(\!.*?)>/si","",$str); //过滤DOCTYPE $str=preg_replace("/<(\/?html.*?)>/si","",$str); //过滤html标签 $str=preg_replace("/<(\/?head.*?)>/si","",$str); //过滤head标签 $str=preg_replace("/<(\/?meta.*?)>/si","",$str); //过滤meta标签 $str=preg_replace("/<(\/?body.*?)>/si","",$str); //过滤body标签 $str=preg_replace("/<(\/?link.*?)>/si","",$str); //过滤link标签 $str=preg_replace("/<(\/?form.*?)>/si","",$str); //过滤form标签 $str=preg_replace("/cookie/si","COOKIE",$str); //过滤COOKIE标签 $str=preg_replace("/<(applet.*?)>(.*?)<(\/applet.*?)>/si","",$str); //过滤applet标签 $str=preg_replace("/<(\/?applet.*?)>/si","",$str); //过滤applet标签 $str=preg_replace("/<(style.*?)>(.*?)<(\/style.*?)>/si","",$str); //过滤style标签 $str=preg_replace("/<(\/?style.*?)>/si","",$str); //过滤style标签 $str=preg_replace("/<(title.*?)>(.*?)<(\/title.*?)>/si","",$str); //过滤title标签 $str=preg_replace("/<(\/?title.*?)>/si","",$str); //过滤title标签 $str=preg_replace("/<(object.*?)>(.*?)<(\/object.*?)>/si","",$str); //过滤object标签 $str=preg_replace("/<(\/?objec.*?)>/si","",$str); //过滤object标签 $str=preg_replace("/<(noframes.*?)>(.*?)<(\/noframes.*?)>/si","",$str); //过滤noframes标签 $str=preg_replace("/<(\/?noframes.*?)>/si","",$str); //过滤noframes标签 $str=preg_replace("/<(i?frame.*?)>(.*?)<(\/i?frame.*?)>/si","",$str); //过滤frame标签 $str=preg_replace("/<(\/?i?frame.*?)>/si","",$str); //过滤frame标签 $str=preg_replace("/<(script.*?)>(.*?)<(\/script.*?)>/si","",$str); //过滤script标签 $str=preg_replace("/<(\/?script.*?)>/si","",$str); //过滤script标签 $str=preg_replace("/javascript/si","Javascript",$str); //过滤script标签 $str=preg_replace("/vbscript/si","Vbscript",$str); //过滤script标签 $str=preg_replace("/on([a-z]+)\s*=/si","On\=",$str); //过滤script标签 $str=preg_replace("/&#/si","&#",$str); //过滤script标签,如javAsCript:alert(
/<script[^>]*?>(?:.|\n)*?<\/script>/i
远程复制示例
从 12.23.34.45 复制到当前服务器
rsync -avzu --progress root@12.23.34.45:/data/wwwroot/ald.com/Uploads/ /home/wwwroot/ald.com/Uploads/
QueryList 3.0 指导文档
PHP 使用 QueryList 轻松采集 JavaScript 动态渲染页面
这种报错多是你 MySQL 升级到 5.7 而引起的默认值不兼容的问题。看看你的字段名是什么,我的是时间字段,类型是 datetime。想到可能是类型的默认值被限制了,查看 sql_mode。果然:NO_ZERO_IN_DATE,NO_ZERO_DATE 这两个参数限制时间不能为0
Continue reading 导入MySQL数据库时报错1067 – Invalid default value for ‘字段名’
1. vhost 里设置重写或添加配置好的重写路径
2. 删除缓存文件 /Runtime/common~runtime.php 或开启 DEBUG Continue reading 阿里云服务器安装 ThinkPHP 记录一次坑
使用 SourceTree 向 码云 gitee.com (git.oschina.com) 推送代码时报错,报错信息如下
error: rpc failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large
配置文件如下:
解决方法: 由 HTTP 提交修改为 SSH 提交 Continue reading OSChina Push error: rpc failed 失败 解决方法