摘要: 文件类型不符合安全规则。试试别的文件。这种错误是由于WordPress中做了文件上传格式的限制,这种限制可以在WordPress中的wp-include/functions.php的get_allowed_mime_types函数中找到,函数如下:function get_allowed_mime_types() {static $mimes = false;if ( !$mimes ) {// Accepted MIME types are set here as PCRE unless provided.$mimes = apply_filters( ‘upload_mimes’, arr 阅读全文
posted @ 2014-03-26 23:32 kedarui 阅读(9486) 评论(1) 推荐(0) 编辑
摘要: LNMP一键安装包也是老左比较喜欢使用的环境之一,昨天帮助一个网友搭建LNMP环境后发现登陆WP后台之后点击左侧的菜单发现直接跳转404错误,开始还以为数据库问题,视线朝上一看原来在地址栏中的路径缺少"wp-admin"路径。应该是wordpress重定向丢失。解决方法很简单,我们在/usr/local/nginx/conf/wordpress.conf文件进行修改。location / {index index.html index.php;if (-f $request_filename/index.html){rewrite (.*) $1/index.html br 阅读全文
posted @ 2014-03-26 23:26 kedarui 阅读(781) 评论(0) 推荐(0) 编辑
摘要: 方法1: insert into select---> insert into tbl2 select id,treeLevel from tbl2方法2: selectinto from--->select id,treeLevel into tbl1 from tbl2示例:alter function dbo.tblForJson(@SuperMan varchar(50),@TreeDepth int)returns @tempSubGroup table(ID int identity(1,1),PersonName nvarchar(50),ParentID int,T 阅读全文
posted @ 2014-03-26 14:13 kedarui 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 1、安装2、头部引用3、文章调用: 阅读全文
posted @ 2014-03-26 00:20 kedarui 阅读(370) 评论(0) 推荐(0) 编辑