<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>露兜博客&#187; 故障排除</title>
	<atom:link href="http://www.ludou.org/tag/troubleshooting/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ludou.org</link>
	<description>分享IT知识，书写我心情</description>
	<lastBuildDate>Thu, 02 Sep 2010 00:29:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>IE6下文字神秘消失</title>
		<link>http://www.ludou.org/ie6-text-disappear.html</link>
		<comments>http://www.ludou.org/ie6-text-disappear.html#comments</comments>
		<pubDate>Wed, 14 Jul 2010 13:37:52 +0000</pubDate>
		<dc:creator>Ludou</dc:creator>
				<category><![CDATA[教程指南]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[故障排除]]></category>
		<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://www.ludou.org/?p=1092</guid>
		<description><![CDATA[因为最近比较忙，这两周都不怎么更新博客了。忙完之后，又开始折腾起我的博客。经常光顾露兜博客的朋友，可能都注意到露兜博客的界面又发生了很大了的变化，具体哪些变化我就不说了。折腾是要付出体力劳动的，尤其是Internet Explorer这个怪物还在这个世上横行霸道，你就别想半点清闲。]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;因为最近比较忙，这两周都不怎么更新博客了。忙完之后，又开始折腾起我的博客。经常光顾露兜博客的朋友，可能都注意到露兜博客的界面又发生了很大了的变化，具体哪些变化我就不说了。折腾是要付出体力劳动的，尤其是Internet Explorer这个怪物还在这个世上横行霸道，你就别想半点清闲。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;修改博客界面的时候，我在IE6下遇到了一个很诡异的问题，具体是什么问题，我都找不到词来形容，看图吧：</p>
<div class="sorting">
<p style="text-align: center;">Internet Explorer 6.0下 介绍文字消失了<img width="600" height="171" alt="文字消失" src="http://file.ludou.org/blog/wp-content/uploads/2010/07/hidden.png" /></p>
<hr />
<p style="text-align: center;">鼠标指针选中消失的文字<img width="600" height="171" alt="文字消失" src="http://file.ludou.org/blog/wp-content/uploads/2010/07/show.png" /></p>
<hr />
<p style="text-align: center;">Firefox下正常显示<img width="600" height="167" alt="文字消失" src="http://file.ludou.org/blog/wp-content/uploads/2010/07/ff_show.png" /></p>
</div>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;可以看到图一，在Internet Explorer 6.0下，作者介绍的文字神秘地消失了，用鼠标去选择这部分文字还是存在的，但是点击到别处又消失，我在CSS中并没有隐藏这部分文字，并且除了IE6，其他浏览器都正常，这只能说是IE6的问题，想来想去都想不出这是什么原因造成。想解决这个问题吧，去网上搜索，但是我所用的大多数关键词都搜不到我想要的解决办法，幸好老天怜悯我，给了我答案：<a href="http://hi.baidu.com/udd_eeqg/blog/item/6877c7a29d20c8a5caefd0fa.html" target="_blank" rel="nofollow">神奇IE6大bug，float导致文字消失</a></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;解决办法就是指定父容器的宽度：</p>
<div class="codecolorer-container css default" style="overflow-x: auto;overflow-y: hidden;white-space:nowrap;width:100%;border:1px solid #9F9F9F;width:600px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #cc00cc;">#CONTENT</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">99%</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;或者指定高度为1%</p>
<div class="codecolorer-container css default" style="overflow-x: auto;overflow-y: hidden;white-space:nowrap;width:100%;border:1px solid #9F9F9F;width:600px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #00AA00;">*</span>html <span style="color: #cc00cc;">#CONTENT</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1%</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;我的解决办法是给右边的文字部分指定高度1%</p>
<div class="codecolorer-container css default" style="overflow-x: auto;overflow-y: hidden;white-space:nowrap;width:100%;border:1px solid #9F9F9F;width:600px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #6666ff;">.bio</span> <span style="color: #6666ff;">.about</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; _height<span style="color: #00AA00;">:</span> <span style="color: #933;">1%</span><span style="color: #00AA00;">;</span> &nbsp; <span style="color: #808080; font-style: italic;">/* 针对IE6 */</span><br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;我想如果我没有找到这篇文章，我永远都不会找出导致文字消失的原因，更不能解决这个问题，感谢该文章的作者。Internet Explorer就是一个典型的程序员折磨程序员的例子，如果你也在写程序，并且你的程序会被别人用，那么请认真对待你的程序，负起你的责任，不要让别人因你而遭受苦难！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ludou.org/ie6-text-disappear.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>为什么自定义的404页面在IE中无法显示？</title>
		<link>http://www.ludou.org/why-custom-404-not-show-in-internet-explorer.html</link>
		<comments>http://www.ludou.org/why-custom-404-not-show-in-internet-explorer.html#comments</comments>
		<pubDate>Wed, 23 Jun 2010 12:13:56 +0000</pubDate>
		<dc:creator>Ludou</dc:creator>
				<category><![CDATA[教程指南]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[故障排除]]></category>
		<category><![CDATA[经验]]></category>

		<guid isPermaLink="false">http://www.ludou.org/?p=1084</guid>
		<description><![CDATA[或许你已经知道了404页面的相关知识，知道了设置404页面的重要性，也知道如何自定义自己的404页面了，可是突然发现自定义的404页面在 Internet Explorer 下无法正常显示（在其它浏览器均正常），遇到页面未找到的情况，直接显示Internet Explorer默认的页面。遇到这样的问题该怎么办呢？]]></description>
			<content:encoded><![CDATA[<p>首先我们通过以下两个链接了解一下什么是404页面：</p>
<ul>
<li><a href="http://baike.baidu.com/view/1402912.html?fromTaglist" rel="nofollow" target="_blank">404页面</a></li>
<li><a href="http://zh.wikipedia.org/zh/HTTP_404" rel="nofollow" target="_blank">HTTP 404</a></li>
</ul>
<p>我们再通过以下三个链接来欣赏一下精美有趣的404页面：</p>
<ul>
<li><a href="http://www.smashingmagazine.com/2009/01/29/404-error-pages-one-more-time/" rel="nofollow" target="_blank">404 Error Pages, One More Time</a></li>
<li><a href="http://www.smashingmagazine.com/2007/08/17/404-error-pages-reloaded/" rel="nofollow" target="_blank">404 Error Pages: Reloaded</a></li>
<li><a href="http://www.smashingmagazine.com/2007/07/25/wanted-your-404-error-pages/" rel="nofollow" target="_blank">Wanted: Your 404 Error Pages</a></li>
</ul>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;经过上面的学习和了解，或者之前你已经知道了404页面的相关知识，知道了设置404页面的重要性，也知道如何自定义自己的404页面了，可是突然发现自定义的404页面在 Internet Explorer 下无法正常显示（在其它浏览器均正常），遇到页面未找到的情况，直接显示Internet Explorer默认的页面：</p>
<div class="sorting">
<p style="text-align: center;"><img width="380px" height="341px" src="http://file.ludou.org/blog/wp-content/uploads/2010/06/404.gif" alt="Internet Explorer 404 页面未找到" /></p>
</div>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;这是为什么呢？刚开始我也找不到原因，通过搜索引擎也找不到相关的中文资料，后来在一家英文网站找到了答案：</p>
<blockquote><p>自定义的404页面大小必须大于512字节，否则Internet Explorer会认为你自定义的404页面不够权威，Internet Explorer会使用其自带的404页面代替，也就是上面图片显示的内容。</p></blockquote>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;所以，如果你想伺候好 Internet Explorer 这位大爷，请往你的404页面多添加些内容，一定要保证404页面的大小大于512字节！</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;最后邀你一起来欣赏一下露兜博客的404页面：<a href="http://www.ludou.org/404" target="_blank">404页面</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ludou.org/why-custom-404-not-show-in-internet-explorer.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>为什么你的WordPress无法发送Email</title>
		<link>http://www.ludou.org/why-wordpress-cant-send-mail.html</link>
		<comments>http://www.ludou.org/why-wordpress-cant-send-mail.html#comments</comments>
		<pubDate>Tue, 08 Jun 2010 12:13:51 +0000</pubDate>
		<dc:creator>Ludou</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[故障排除]]></category>

		<guid isPermaLink="false">http://www.ludou.org/?p=1075</guid>
		<description><![CDATA[经常有人问这样的问题：为什么在后台注册，WordPress没有给用户发送注册信息的Email？
在通常情况下，这样的问题大都是博客空间引起的，而不是WordPress程序的问题。本文将教你找出WordPress无法发送Email的原因。]]></description>
			<content:encoded><![CDATA[<p>经常有人问这样的问题：</p>
<ul>
<li>为什么在后台注册，WordPress没有给用户发送注册信息的Email？</li>
<li>为什么我已经安装了相关插件，但是WordPress没有给评论者发送新评论通知？</li>
</ul>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其实这都涉及到了一个问题：为什么WordPress无法发送Email？</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;通常这样的问题大都是博客空间引起的，而不是WordPress程序的问题。要想查清楚WordPress不能发信是不是由博客空间引起的，可以使用以下方法检测。新建一个php文件，命名为 <code>mail.php</code> ，打开并填上以下代码：</p>
<div class="codecolorer-container php default" style="overflow-x: auto;overflow-y: hidden;white-space:nowrap;width:100%;border:1px solid #9F9F9F;width:600px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #000088;">$txt</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;hello&quot;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// 以下的邮箱地址改成你的</span><br />
<span style="color: #000088;">$mail</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'somebody@example.com'</span><span style="color: #339933;">;</span> &nbsp;<br />
<br />
<span style="color: #666666; font-style: italic;">// 发送邮件</span><br />
<a href="http://www.php.net/mail"><span style="color: #990000;">mail</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mail</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;My subject&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$txt</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'message was sent!'</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
<p>保存并上传至你的网站根目录，并在浏览器运行：<br />
<code>http://你的博客网址/mail.php</code></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;到你的邮箱查收邮件，如果收到标题为 <strong>My subject</strong> 的邮件，说明你的空间支持mail()函数发送邮件，也就是WordPress默认的发信方式。如果未收到任何邮件，说明你的网站空间不支持mail()发信，这也就是为什么WordPress无法发送邮件的原因了，找你的博客空间客服谈谈吧。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ludou.org/why-wordpress-cant-send-mail.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>谷歌浏览器不支持css文件使用@charset &quot;utf-8&quot;;</title>
		<link>http://www.ludou.org/chrome-not-suppost-charset.html</link>
		<comments>http://www.ludou.org/chrome-not-suppost-charset.html#comments</comments>
		<pubDate>Tue, 16 Mar 2010 13:28:46 +0000</pubDate>
		<dc:creator>Ludou</dc:creator>
				<category><![CDATA[教程指南]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[故障排除]]></category>
		<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://www.ludou.org/?p=984</guid>
		<description><![CDATA[今天测试网页的时候，发现网页在firefox和ie各版本下都显示正常，但是换了谷歌浏览器chrome，原本好好的网页一下子面目全非，仔细检查了css文件和html，并没有发现什么错误的地方，原本使用的css sprite也无法正常运行，所有图片都显示不出来了。
]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;今天测试网页的时候，发现网页在firefox和ie各版本下都显示正常，但是换了谷歌浏览器chrome，原本好好的网页一下子面目全非，仔细检查了css文件和html，并没有发现什么错误的地方，原本使用的css sprite也无法正常运行，所有图片都显示不出来了。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;最终鼓捣鼓捣，去掉了css文件中的编码声明@charset &quot;utf-8&quot;; ，噢！一切正常了！</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;这是一个比较诡异的问题，有些CSS添加编码声明显示是正常的，而有些就不正常，莫非是chrome的bug？</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ludou.org/chrome-not-suppost-charset.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>html代码正常，在IE下却完全空白！</title>
		<link>http://www.ludou.org/ie-null.html</link>
		<comments>http://www.ludou.org/ie-null.html#comments</comments>
		<pubDate>Thu, 11 Mar 2010 11:42:16 +0000</pubDate>
		<dc:creator>Ludou</dc:creator>
				<category><![CDATA[教程指南]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[故障排除]]></category>
		<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://www.ludou.org/?p=979</guid>
		<description><![CDATA[今天测试一些网页，发现有个页面在firefox显示很正常，在ie的任意版本下却一片空白，查看一下源代码，发现里面有完整的html源代码而且没有错误，很是奇怪为什么经过ie解释就变成空白了呢？]]></description>
			<content:encoded><![CDATA[<p>今天测试一些网页，发现有个页面在firefox显示很正常，在ie的任意版本下却一片空白，查看一下源代码，发现里面有完整的html源代码而且没有错误，很是奇怪为什么经过ie解释就变成空白了呢？</p>
<p><strong>分析原因与解决方法</strong>：页面字符集定义与title的位置顺序往往会导致这个问题，正确的做法是先定义页面字符集，再写title，不过这个问题好像是随机发生的，有些页面不管相对顺序怎样变化都显示正常，及时title中已经出现中文。下面的是两个正误示例。</p>
<p>错误写法：</p>
<div class="codecolorer-container html4strict default" style="overflow-x: auto;overflow-y: hidden;white-space:nowrap;width:100%;border:1px solid #9F9F9F;width:600px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">title</span></a>&gt;</span>露兜博客<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">title</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/meta.html"><span style="color: #000000; font-weight: bold;">meta</span></a> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/html; charset=utf-8&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></div></td></tr></tbody></table></div>
<p>正确写法：</p>
<div class="codecolorer-container html4strict default" style="overflow-x: auto;overflow-y: hidden;white-space:nowrap;width:100%;border:1px solid #9F9F9F;width:600px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/meta.html"><span style="color: #000000; font-weight: bold;">meta</span></a> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/html; charset=utf-8&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">title</span></a>&gt;</span>露兜博客<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">title</span></a>&gt;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ludou.org/ie-null.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>WordPress升级错误:Fatal error: Maximum execution time &#8230;</title>
		<link>http://www.ludou.org/wordpress-fatalerror-maximum-execution-time.html</link>
		<comments>http://www.ludou.org/wordpress-fatalerror-maximum-execution-time.html#comments</comments>
		<pubDate>Sun, 28 Feb 2010 08:04:46 +0000</pubDate>
		<dc:creator>Ludou</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[故障排除]]></category>

		<guid isPermaLink="false">http://www.ludou.org/?p=968</guid>
		<description><![CDATA[<p>今天在给本地做测试用的WordPress博客升级的时候，出现以下错误：<br />

&#160;&#160;&#160;&#160;&#160;<strong>Fatal error</strong>:  Maximum execution time of 30 seconds exceeded in <strong>x:\phpdocs\wp\wp-includes\http.php</strong> on line <strong>1024</strong></p>

<p>&#160;&#160;&#160;&#160;&#160;这里附上我的解决办法！</p>]]></description>
			<content:encoded><![CDATA[<p>今天在给本地做测试用的WordPress博客升级的时候，出现以下错误：</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>Fatal error</strong>:  Maximum execution time of 30 seconds exceeded in <strong>x:\phpdocs\wp\wp-includes\http.php</strong> on line <strong>1024</strong></p>
<p>&nbsp;</p>
<p><strong>错误原因:</strong></p>
<ol>
<li>博客数据库中的数据量太大，导致程序执行时间过长；</li>
<li>博客所使用的服务器设置做了限制，php.ini 中缺省的程序最长执行时间是 30 秒，程序若执行超过30秒，就会被系统终止。</li>
</ol>
<p>&nbsp;</p>
<p><strong>解决办法：</strong></p>
<ol>
<li>如果是自己的服务器，可更改php.ini中的max_execution_time数值，数值大小自己选择，改到错误不出现为止，默认是30，现在我改成300 ；</li>
<li>如果使用的是虚拟主机，可以在主机根目录下的.htaccess文件中设置（如果没有该文件，可以新建一个），在.htaccess文件中加上<code><strong>php_value max_execution_time 300</strong></code>，300这个数值单位为秒，请仔细斟酌更改；</li>
<li>在<strong>wp-includes\http.php</strong>中添加该语句：<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code><span style="color:red">set_time_limit(300);   //0为无限制</span></code></li>
<li>或者在<strong>wp-includes\http.php</strong>中添加该语句：<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code><span style="color:red">ini_set('max_execution_time', '300');</span></code></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.ludou.org/wordpress-fatalerror-maximum-execution-time.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>margin-bottom解决图片文字不对齐的问题</title>
		<link>http://www.ludou.org/pic-text-alignment.html</link>
		<comments>http://www.ludou.org/pic-text-alignment.html#comments</comments>
		<pubDate>Thu, 25 Feb 2010 11:59:00 +0000</pubDate>
		<dc:creator>Ludou</dc:creator>
				<category><![CDATA[教程指南]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[故障排除]]></category>
		<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://www.ludou.org/?p=952</guid>
		<description><![CDATA[我们在做网页的时候，会遇到一个图片和文字位置对不齐的问题。(一般表现为图片总是比文字高点)，我们可通过margin-bottom来解决这个问题。]]></description>
			<content:encoded><![CDATA[<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;我们在做网页的时候，会遇到一个图片和文字位置对不齐的问题。(一般表现为图片总是比文字高点)，如下图，“我的联系方式”是文字，后面的email是图片：</p>
<p> <img class="size-full wp-image-951" title="email" src="http://file.ludou.org/blog/wp-content/uploads/2010/02/email.bmp" alt="文字和图片没有对齐" width="306px" height="26px" style="border:1px dotted black;" /></p>
<p>&nbsp;</p>
<p><strong>解决问题最好的办法：</strong></p>
<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;一个关键的属性: margin-bottom 通过修改图片的外边框的底部高度就可以让文字移动上来，做法是把这个值设置为负数。例如我们高度为22像素的图片设置它的style=&quot;margin-bottom:&nbsp;-4px&quot; 这样文字和图片就居中了。这个值随着图片的大小不同而改变，具体的大家测试一下就知道了。下面是我更改后的效果：</p>
<p><img class="alignleft size-full wp-image-953" title="email2" src="http://file.ludou.org/blog/wp-content/uploads/2010/02/email2.bmp" style="border:1px dotted black;" alt="文字和图片对齐了" width="305px" height="25px" /></p>
<p>&nbsp;</p>
<p style="font-size:13px;color:#999999;">本文转载自：<a href="http://blog.csdn.net/ChaoYang0502/archive/2008/10/01/3007017.aspx" rel="nofollow"> DIV+CSS解决图片文字对齐的问题</a><br />版权归原作者所有！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ludou.org/pic-text-alignment.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>css的背景图片在ie下不显示在Firefox下可以显示？</title>
		<link>http://www.ludou.org/css_background.html</link>
		<comments>http://www.ludou.org/css_background.html#comments</comments>
		<pubDate>Thu, 11 Feb 2010 15:25:14 +0000</pubDate>
		<dc:creator>Ludou</dc:creator>
				<category><![CDATA[教程指南]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[故障排除]]></category>
		<category><![CDATA[经验]]></category>
		<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://www.ludou.org/?p=921</guid>
		<description><![CDATA[初衷是想给这个提交按钮&#60;input&#160;type=&#34;submit&#34;value=&#34; /&#62;加上背景图片，当把各个background背景属性分开写的时候，按钮背景图片在IE中无法显示，而在Firefox和Chrome中皆可以正常显示。<br />解决方法：使用background 简写属性，在一个声明中设置所有的背景属性。]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;初衷是想给这个提交按钮&lt;input&nbsp;type=&quot;submit&quot;&nbsp;value=&quot; /&gt;加上背景图片，用了以下css样式：</p>
<div class="codecolorer-container css default" style="overflow-x: auto;overflow-y: hidden;white-space:nowrap;width:100%;border:1px solid #9F9F9F;width:600px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #6666ff;">.subtn</span> input <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background-attachment</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">scroll</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/btn.gif</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">60px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;但是不知道是怎么回事，在Internet Explorer 6、7、8中皆无法显示该背景图片按钮，依然是默认的按钮形式，而在Firefox和Chrome中皆可以正常显示，可以排除图片链接的有效性，尝试修改了很多次都没有成功。后来使用background简写属性，在一个声明中设置所有的背景属性，在Internet Explorer居然可以正常显示了：</p>
<div class="codecolorer-container css default" style="overflow-x: auto;overflow-y: hidden;white-space:nowrap;width:100%;border:1px solid #9F9F9F;width:600px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #6666ff;">.subtn</span> input <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/btn.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #993333;">scroll</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">60px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;刚开始我在想是不是我的网页代码存在特殊性，其他代码可能影响了该样式，但是后来我单独新建了一个.html，里面只写了个form，一个输入框，一个提交框，在使用上面的background属性分开写的css属性后，结果问题依旧，可以说明这是一个普遍性的问题！CSS文档中有提到：</p>
<blockquote><p>通常建议使用简写属性，而不是分别使用单个属性，因为简写属性在较老的浏览器中能够得到更好的支持，而且需要键入的字母也更少。</p></blockquote>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;但是我想现在的问题已经不是浏览器版本老的问题了，而是Internet Explorer的问题了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ludou.org/css_background.html/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>WordPress升级错误解决：Fatal error: Allowed memory size of</title>
		<link>http://www.ludou.org/wordpress-fatal-error-allowed-memory-size-of.html</link>
		<comments>http://www.ludou.org/wordpress-fatal-error-allowed-memory-size-of.html#comments</comments>
		<pubDate>Sun, 08 Nov 2009 14:20:22 +0000</pubDate>
		<dc:creator>Ludou</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[故障排除]]></category>
		<category><![CDATA[经验]]></category>

		<guid isPermaLink="false">http://www.ludou.org/?p=792</guid>
		<description><![CDATA[<p>&#160;&#160;&#160;&#160;&#160;每次WordPress出新版本，我向来都是等到所有小白鼠都死光了才开始升级的，这次等了三个星期，升级的小白鼠差不多也死光了。</p>
<p>&#160;&#160;&#160;&#160;&#160;不过这次把给我的WordPress程序从2.8.4升级到2.8.5的时候，我也当了一回小白鼠。在后台点击“自动升级”，就出现了以下错误提示（可能数字跟你的不太一样）：Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2354671 bytes) in /../wp-includes/http.php on line 1327</p>
]]></description>
			<content:encoded><![CDATA[<p>     每次WordPress出新版本，我向来都是等到所有小白鼠都死光了才开始升级的，这次等了三个星期，升级的小白鼠差不多也死光了。</p>
<p>     不过这次把给我的WordPress程序从2.8.4升级到2.8.5的时候，我也当了一回小白鼠。在后台点击“自动升级”，就出现了以下错误提示（可能数字跟你的不太一样）：</p>
<p>     <code>Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2354671 bytes) in /../wp-includes/http.php on line 1327</code></p>
<p>     以前也是自动升级的，没出现过这样的问题，我的网站空间估计也没什么问题，还好之前已经有小白鼠因为这个问题而死掉了，我幸存下来了，具体解决办法有三：</p>
<ol>
<li>在WordPress的安装目录下新建一个.htaccess文件（已存在就不用新建了），在文件内填上:  <code><strong><span style="color: #ff0000;">php_value memory_limit 64M</span></strong></code></li>
<li>在 wp-config.php 文件的 <code>define ('WPLANG', '');</code>下一行添上:<br />
<code><strong><span style="color: #ff0000;">define('WP_MEMORY_LIMIT', '64M');</span></strong></code></li>
<li>wp-settings.php，编辑这个文件，修改<code>define('WP_MEMORY_LIMIT', '32M');</code>为<code><span style="color: #ff0000;"><strong>define('WP_MEMORY_LIMIT', '64M');</strong></span></code></li>
</ol>
<p>     以上第二种方法在我的博客上测试成功，第三种方法是官方文档提供的解决方案，你可以根据自己的喜好选择一个方法解决你的问题。祝你成功啊！再不成功就是你的主机限制问题了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ludou.org/wordpress-fatal-error-allowed-memory-size-of.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Ubuntu下vimtutor乱码的解决方法</title>
		<link>http://www.ludou.org/vimtutor-garbled.html</link>
		<comments>http://www.ludou.org/vimtutor-garbled.html#comments</comments>
		<pubDate>Thu, 24 Sep 2009 12:51:50 +0000</pubDate>
		<dc:creator>Ludou</dc:creator>
				<category><![CDATA[教程指南]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[故障排除]]></category>
		<category><![CDATA[经验]]></category>

		<guid isPermaLink="false">http://www.ludou.org/?p=711</guid>
		<description><![CDATA[在Ubuntu系统中，打开中文版vimtutor乱码，其实只需改变vimtutor文件的编码即可。vimtutor中文之所以乱码，是因为vimtutor并没有提供UTF-8编码的文件。]]></description>
			<content:encoded><![CDATA[<h5> 操作系统：</h5>
<hr /></hr>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ubuntu Linux 8.04</p>
<h5>故障描述：</h5>
<hr /></hr>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vimtutor是vim编辑器自带的入门教程，刚开始在终端中输入<strong>vimtutor</strong>的时候，出来的中文教程页面全是乱码！</p>
<h5>解决办法：</h5>
<hr /></hr>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;要使用vimtutor，首先得确定你的Linux系统中已经安装了Vim，原始系统中安装的是简易版的Vi。另外要确定你的Linux系统是中文版的，英文版的系统不会自动安装中文版的vimtutor。vimtutor中文之所以乱码，是因为vimtutor并没有提供UTF-8编码的文件。我们需要做的，就是用 gedit 打开<strong>/usr/share/vim/vim71/tutor/tutor.zh.euc</strong>文件，然后另存为UTF-8格式，替换原有文件就OK啦！<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;你可以在终端中输入命令打开文件，具体命令是:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>sudo gedit /usr/share/vim/vim71/tutor/tutor.zh.euc</strong>
</p>
<p style="background:#dddddd;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;学习使用vim最好的方式是使用她。您可以通过内置的vim教程来学习vim的基本使用，只需要在终端中输入vimtutor (有的系统中可能是vim-tutor).如果你想在中文系统中看英文原版的vimtutor，可以使用命令：vimtutor rf ，即在vimtutor 后面接任意字符。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ludou.org/vimtutor-garbled.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
