黄聪

论SEO对人类的重要性,请看我的博客:hcsem.com

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

06 2015 档案

摘要:使用mysql做数据库还原的时候,由于有些数据很大,会出现这样的错误:The MySQL Server returned this Error:MySQL Error Nr. MySQL server has gone away。我的一个30mb的备份还原的时候就出现了这错误。解决的方法:1、找到m... 阅读全文
posted @ 2015-06-25 15:16 黄聪 阅读(1257) 评论(0) 推荐(0) 编辑

摘要:错误原因:当POST的数据超过 max_allowed_packet 就会报 MySQL server has gone away 的错误。1、查看当前Mysql的max_allowed_packetshow global variables like 'max_allowed_packet';默认... 阅读全文
posted @ 2015-06-24 13:50 黄聪 阅读(429) 评论(0) 推荐(0) 编辑

摘要:一、字符串替换str_replace("iwind", "kiki", "i love iwind, iwind said");将输出 "i love kiki, kiki said"str_replace(find,replace,string,count)参数 描述find 必需。规定要查找的值... 阅读全文
posted @ 2015-06-23 20:36 黄聪 阅读(35172) 评论(0) 推荐(4) 编辑

摘要:UPDATE friends INNER JOIN users ON friends.friendid=users.useridSET friends.friendname=users.username 阅读全文
posted @ 2015-06-11 17:02 黄聪 阅读(732) 评论(0) 推荐(0) 编辑

摘要:1、添加按钮在 functions.php文件里面添加下面代码:add_action('media_buttons', 'add_my_media_button');function add_my_media_button() { echo 'Add my media';}添加后,登录后台编辑... 阅读全文
posted @ 2015-06-04 11:16 黄聪 阅读(8679) 评论(0) 推荐(0) 编辑

摘要:WordPress 3.5 新增了一对非常有用的挂钩,可以快速在WordPress后台文章编辑器的上方或下方添加提示内容,下面是一个简单的例子,直接将代码添加到主题的 functions.php 文件:function below_the_title() { echo '在编辑器上方添加的提示... 阅读全文
posted @ 2015-06-04 10:39 黄聪 阅读(520) 评论(0) 推荐(0) 编辑

摘要:When working with WordPress posts and you want to quickly change the status or date of one or more posts, it’s a simple affair via the built-in bulk a... 阅读全文
posted @ 2015-06-04 10:30 黄聪 阅读(1113) 评论(0) 推荐(0) 编辑