<?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>牧狼羊博客 [这里有我的故事] -- YuJan.com &#187; Flashfxp</title>
	<atom:link href="http://yujan.com/html/tag/flashfxp/feed" rel="self" type="application/rss+xml" />
	<link>http://yujan.com</link>
	<description>这里有我的故事</description>
	<lastBuildDate>Sun, 16 May 2010 15:26:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		
<!-- Start Of Script Generated By WP-PostViews Plus -->
<script type='text/javascript' src='http://yujan.com/wp-includes/js/jquery/jquery.js?ver=1.3.2'></script>
<script type="text/javascript">
/* <![CDATA[ */
/* ]]> */
</script>
<!-- End Of Script Generated By WP-PostViews Plus -->
	<item>
		<title>博客建成，心情愉悦！</title>
		<link>http://yujan.com/html/new-wordpress-blog.html</link>
		<comments>http://yujan.com/html/new-wordpress-blog.html#comments</comments>
		<pubDate>Fri, 04 Jan 2008 01:25:25 +0000</pubDate>
		<dc:creator>牧狼羊</dc:creator>
				<category><![CDATA[博客讨论 ‖ Blog]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[Flashfxp]]></category>
		<category><![CDATA[Maxthon]]></category>
		<category><![CDATA[MEyu]]></category>
		<category><![CDATA[TM]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[极点]]></category>
		<category><![CDATA[火山]]></category>

		<guid isPermaLink="false">http://mlyang.cn/blog/archives/13</guid>
		<description><![CDATA[2008年1月2日，我得记住这个日子，这一天我终于购进了属于自己的收费空间，期间过程扑朔迷离，话说&#8230;.（以下省略一千字）。第一次拥有收费空间，很多东西让我兴奋不已：超过的速度，... ]]></description>
			<content:encoded><![CDATA[<p>2008年1月2日，我得记住这个日子，这一天我终于购进了属于自己的收费空间，期间过程扑朔迷离，话说&#8230;.（以下省略一千字）。第一次拥有收费空间，很多东西让我兴奋不已：超过的速度，强大的后台管理，丰富的功能，等等等等&#8230;&#8230;3号安大居然断网一天，那个郁闷的！ 4号，准备搭建blog了，寝室刚刚恢复网络不久，速度十分之慢，刚好老婆想去网吧上网，于是我干脆跑网吧搞去了。周末网吧人很多，我找来找去搞到一台很烂的机子，看旁边虎视眈眈的许多人，我也只好硬着头皮坐下来了。将极点、Maxthon、Flashfxp、TM&#8212;&#8212;我上网太挑剔。 Wordpress号称是安装最简单的blog程序，填上博客标题和个人邮箱，点击确定，一个博客就这么安装成功了。最后界面上写了这么一句话：&#8220;还想进下一步吗？让您失望了:)&#8221;，我喜欢！然而进入后台我才发现这么一个问题，我安装的明明是中文版本，结果却成了全英文版本，欺负我四级都没过。</p>
<p><span id="more-13"></span></p>
<p>之前安装过一个英文版的，我以为是上传的文件搞错了，又从火山免费空间上把中文版文件Down下来，再重新上传，新建数据库，再安装，还是老样子。晕了，活见鬼了不成？ 我开始怀疑是不是MEyu的空间不支持Wordpress博客程序，那可就完蛋了，我买这空间恰恰就是为了装Wordpress，不支持的话岂不亏大了？赶紧跑MEyu客服搜索，原来很多人都有我同样的问题，有点汗，好在还有好多人贴出了解决办法，我又燃起了希望，哈哈！照着解决办法修改了语言包文件，再安装，成了！ 下来把这解决办法分享给大家。</p>
</p>
<blockquote><p>WordPress 2.3.1中文显示问题解决方法：打开wp-includes/gettext.php， 找到：      <br /><coolcode download="gettext.php" linenum="on">      <br />$this-&gt;enable_cache = $enable_cache;</coolcode></p>
<p>// $MAGIC1 = (int)0&#215;950412de; //bug in PHP 5.0.2      <br />$MAGIC1 = (int) &#8211; 1794895138;       <br />// $MAGIC2 = (int)0xde120495; //bug       <br />$MAGIC2 = (int) &#8211; 569244523;       <br />// 64-bit fix       <br />$MAGIC3 = (int) 2500072158;</p>
<p>$this-&gt;STREAM = $Reader;      <br />$magic = $this-&gt;readint();       <br />if ($magic == ($MAGIC1 &amp; 0xFFFFFFFF) || $magic == ($MAGIC3 &amp; 0xFFFFFFFF)) { // to make sure it works for 64-bit platforms       <br />$this-&gt;BYTEORDER = 0;       <br />} elseif ($magic == ($MAGIC2 &amp; 0xFFFFFFFF)) {       <br />$this-&gt;BYTEORDER = 1;       <br />} else {       <br />$this-&gt;error = 1; // not MO file       <br />return false;       <br />}</p>
<p>替换成：      <br /><coolcode download="gettext.php" linenum="on">      <br />$this-&gt;enable_cache = $enable_cache;</coolcode></p>
<p>// $MAGIC1 = (int)0&#215;950412de; //bug in PHP 5      <br />$MAGIC1 = (int) &#8211; 1794895138;       <br />// $MAGIC2 = (int)0xde120495; //bug       <br />$MAGIC2 = (int) &#8211; 569244523;       <br />$MAGIC3 = (int) 2500072158; // &lt;- 64 BIT FIX: ADD THIS LINE!</p>
<p>$this-&gt;STREAM = $Reader;      <br />$magic = $this-&gt;readint();       <br />if ($magic == $MAGIC1 || $magic == $MAGIC3) { // &lt;- 64 BIT FIX: CHANGE THIS LINE!       <br />$this-&gt;BYTEORDER = 0;       <br />} elseif ($magic == $MAGIC2) {       <br />$this-&gt;BYTEORDER = 1;       <br />} else {       <br />$this-&gt;error = 1; // not MO file       <br />return false;       <br />}</p>
<p>问题的根源是Wordpress在64位的CPU下（linux系统）运行时，由于PHP-gettext解析.mo语言文件出错，以至于Wordpress在使用中文版本时失败。这是由于PHP-gettext在加载.mo文件时，没有正确匹配验证位导致stream自动关闭。</p>
</blockquote>
<h4  class="related_post_title">相关日志</h4><ul class="related_post"><li><a href="http://yujan.com/html/all-plugins-for-wordpress-i-m-using.html" title="我使用的所有WordPress插件">我使用的所有WordPress插件</a></li><li><a href="http://yujan.com/html/two-years-with-blackberry.html" title="用黑莓手机两年了">用黑莓手机两年了</a></li><li><a href="http://yujan.com/html/wordpress-for-blackberry.html" title="黑莓专用的WordPress客户端">黑莓专用的WordPress客户端</a></li><li><a href="http://yujan.com/html/qq-typing-is-good.html" title="QQ跟打器是个好东西">QQ跟打器是个好东西</a></li><li><a href="http://yujan.com/html/dead-of-google-adsense.html" title="死亡日记">死亡日记</a></li><li><a href="http://yujan.com/html/sogou-wubi-input.html" title="搜狗五笔输入法发布">搜狗五笔输入法发布</a></li><li><a href="http://yujan.com/html/upgrade-the-blog-to-26.html" title="博客升级至WordPress 2.6">博客升级至WordPress 2.6</a></li><li><a href="http://yujan.com/html/ready-to-build-a-completely-personal-website.html" title="准备建个完全的个人网站">准备建个完全的个人网站</a></li><li><a href="http://yujan.com/html/post-by-mobile.html" title="文章及评论的管理–手机管理博客(二)">文章及评论的管理–手机管理博客(二)</a></li><li><a href="http://yujan.com/html/set-up-wap.html" title="Wap页面的建立&#8211;手机管理博客(一)">Wap页面的建立&#8211;手机管理博客(一)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://yujan.com/html/new-wordpress-blog.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
