<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>chungwoo</title>
		<link>http://chungwoo.org.ru//</link>
		<description></description>
		<copyright>Copyright (C) 2004 Security Angel Team [S4T] All Rights Reserved.</copyright>
		<generator>SaBlog-X Version 1.5 Build 20070520</generator>
		<lastBuildDate>Sat, 13 Mar 2010 10:06:17 +0000</lastBuildDate>
		<ttl>30</ttl>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=572</guid>
			<title>WordPress 2.7 自定义单条评论</title>
			<author>admin</author>
			<description><![CDATA[<p>WordPress 2.7内置了threaded comment之后，原来主题的comments.php文件中繁琐的评论循环简化成了一个函数调用：<a href="http://codex.wordpress.org/Template_Tags/wp_list_comments"><font color="#cc0000">wp_list_comments</font></a>.</p>
<p>然而不加任何参数调用该函数的话，它输出的HTML结构是固定的。尽管它给每个元素都提供了丰富的class name供CSS样式使用，但是CSS并不足够灵活（除非使用一些我认为不是太好的方式，比如大量绝对定位），可以任意显示固定的DOM结构。某些情况下，我们还是希望能够自己来定义DOM结构。</p>
<p>WordPress开发者当然考虑到了这一点，在Codex上的<a href="http://codex.wordpress.org/Template_Tags/wp_list_comments"><font color="#cc0000">文档页</font></a>就给出了一个例子。实际上就是wp_list_comments接收的数组参数中可以传入两个回调函数。一个是callback，负责输出一条评论的主体部分。另一个是end-callback，负责输出评论的结束部分。</p>
<p>解释一下。threaded comments实际上在内部就是一个&ldquo;森林&rdquo;，每一条顶层评论和它的所有回复、回复的回复构成一棵树。wp_list_comments对每棵树做一次遍历，首先调用参数callback指定的函数，然后递归遍历其子节点（输出回复评论），完成之后再调用参数end-callback指定的函数。如果不指定这两个函数，WordPress就会输出默认的结构，实际上大家都是把默认输出复制到自己的回调函数中，然后修改一下结构。简单的说，就是callback输出一个块的开头加上该评论自己的内容，end-callback输出这个块的结尾，中间是子评论。如下图所示的遍历顺序，偏下的箭头表示调用callback，偏上的箭头表示调用end-callback.</p>
<p><a title="tree (by qingbo)" href="http://www.flickr.com/photos/qingbo/3205713933/"><img title="tree (by qingbo)" height="333" alt="tree (by qingbo)" src="http://farm4.static.flickr.com/3474/3205713933_9e894ee76f.jpg" width="500" /></a></p>]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=572</link>
			<category domain="http://chungwoo.org.ru//?cid=1">wordpress</category>
			<pubDate>2009-05-14 10:52</pubDate>
		</item>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=571</guid>
			<title>WordPress Rss Feed正确添加自定义内容</title>
			<author>admin</author>
			<description><![CDATA[方法就是添加两个filter，分别在the_excerpt_rss和the_content_rss. 貌似合理，但实际上呢？且看wp-includes/feed-rss2.php的关键部分：
<div class="syntaxhighlighter " id="highlighter_220743">
<div class="bar">
<div class="toolbar"><a class="item about" title="?" style="WIDTH: 16px; HEIGHT: 16px" href="http://qingbo.org/archives/571.html#about" commandname="about" highlighterid="highlighter_220743"></a></div>
</div>
<div class="lines">
<div class="line alt1"><code class="number">01.</code><span class="content"><span class="block" style="MARGIN-LEFT: 0px"><code class="plain">&lt;?php </code><code class="keyword">if</code> <code class="plain">(get_option(</code><code class="string">'rss_use_excerpt'</code><code class="plain">)) : ?&gt; </code></span></span></div>
<div class="line alt2"><code class="number">02.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="MARGIN-LEFT: 56px"><code class="plain">&lt;description&gt;&lt;![CDATA[&lt;?php the_excerpt_rss() ?&gt;]]&gt;&lt;/description&gt; </code></span></span></div>
<div class="line alt1"><code class="number">03.</code><span class="content"><span class="block" style="MARGIN-LEFT: 0px"><code class="plain">&lt;?php </code><code class="keyword">else</code> <code class="plain">: ?&gt; </code></span></span></div>
<div class="line alt2"><code class="number">04.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="MARGIN-LEFT: 56px"><code class="plain">&lt;description&gt;&lt;![CDATA[&lt;?php the_excerpt_rss() ?&gt;]]&gt;&lt;/description&gt; </code></span></span></div>
<div class="line alt1"><code class="number">05.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="MARGIN-LEFT: 28px"><code class="plain">&lt;?php </code><code class="keyword">if</code> <code class="plain">( </code><code class="functions">strlen</code><code class="plain">( </code><code class="variable">$post</code><code class="plain">-&gt;post_content ) &gt; 0 ) : ?&gt; </code></span></span></div>
<div class="line alt2"><code class="number">06.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="MARGIN-LEFT: 56px"><code class="plain">&lt;content:encoded&gt;&lt;![CDATA[&lt;?php the_content() ?&gt;]]&gt;&lt;/content:encoded&gt; </code></span></span></div>
<div class="line alt1"><code class="number">07.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="MARGIN-LEFT: 28px"><code class="plain">&lt;?php </code><code class="keyword">else</code> <code class="plain">: ?&gt; </code></span></span></div>
<div class="line alt2"><code class="number">08.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="MARGIN-LEFT: 56px"><code class="plain">&lt;content:encoded&gt;&lt;![CDATA[&lt;?php the_excerpt_rss() ?&gt;]]&gt;&lt;/content:encoded&gt; </code></span></span></div>
<div class="line alt1"><code class="number">09.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="MARGIN-LEFT: 28px"><code class="plain">&lt;?php </code><code class="keyword">endif</code><code class="plain">; ?&gt; </code></span></span></div>
<div class="line alt2"><code class="number">10.</code><span class="content"><span class="block" style="MARGIN-LEFT: 0px"><code class="plain">&lt;?php </code><code class="keyword">endif</code><code class="plain">; ?&gt;</code></span></span></div>
</div>
</div>
<p>首先鄙视一下RSS中只输出摘要的blogger，这样我们就只需关心外层if判断的else块了。Feed中的每个item都有一个description标签，调用的是the_excerpt_rss函数。而最重要的是content:encoded这个标签，因为多数RSS阅读器都是根据这里的内容显示的。可以看到，如果文章内容不为空&mdash;&mdash;该条件99.9%的情况下成立，content:encoded的内容就是调用the_content. 该文件输出的是RSS 2.0格式，大部分WordPress blog的默认feed.</p>
<p>再看feed-rss.php, feed-rdf.php和feed-atom.php，只有feed-rss.php输出的RSS 0.92格式的feed没有使用the_content. 因此，按照Smashing Magazine的方法，绝大多数情况下我们添加的内容不会再RSS阅读器中显示。</p>
<p>所以正确的做法是把&rsquo;the_content&rsquo;也加上filter：</p>
<div class="syntaxhighlighter " id="highlighter_467520">
<div class="bar">
<div class="toolbar"><a class="item about" title="?" style="WIDTH: 16px; HEIGHT: 16px" href="http://qingbo.org/archives/571.html#about" commandname="about" highlighterid="highlighter_467520"></a></div>
</div>
<div class="lines">
<div class="line alt1"><code class="number">1.</code><span class="content"><span class="block" style="MARGIN-LEFT: 0px"><code class="keyword">function</code> <code class="plain">process_feed(</code><code class="variable">$content</code><code class="plain">) { </code></span></span></div>
<div class="line alt2"><code class="number">2.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="MARGIN-LEFT: 28px"><code class="keyword">if</code> <code class="plain">(is_feed()) { </code><code class="comments">// 只在feed输出时处理，不影响站内内容显示 </code></span></span></div>
<div class="line alt1"><code class="number">3.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="MARGIN-LEFT: 56px"><code class="variable">$content</code> <code class="plain">= ...; </code></span></span></div>
<div class="line alt2"><code class="number">4.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="MARGIN-LEFT: 28px"><code class="plain">} </code></span></span></div>
<div class="line alt1"><code class="number">5.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="MARGIN-LEFT: 28px"><code class="keyword">return</code> <code class="variable">$content</code><code class="plain">; </code></span></span></div>
<div class="line alt2"><code class="number">6.</code><span class="content"><span class="block" style="MARGIN-LEFT: 0px"><code class="plain">} </code></span></span></div>
<div class="line alt1"><code class="number">7.</code><span class="content"><code class="spaces">&nbsp;</code><span class="block" style="MARGIN-LEFT: 7px">&nbsp;</span></span></div>
<div class="line alt2"><code class="number">8.</code><span class="content"><span class="block" style="MARGIN-LEFT: 0px"><code class="plain">add_filter(</code><code class="string">'the_content'</code><code class="plain">, </code><code class="string">'process_feed'</code><code class="plain">);</code></span></span></div>
</div>
</div>
<p>最后看一下the_excerpt_rss这个函数到底都干了些什么。它定义在wp-includes/feed.php中，首先调用get_the_excerpt函数，然后应用hook到&rsquo;the_excerpt_rss&rsquo;的filter. get_the_excerpt定义在wp-includes/post-template.php中，取得文章的post_excerpt，然后应用hook到&rsquo;get_the_excerpt&rsquo;的filter，默认是wp-includes/formatting.php中的wp_trim_excerpt函数。它的作用是当post_excerpt为空的时候（该条件绝大多数情况下成立，我还没见过谁去写那个excerpt&mdash;&mdash;默认在WP文章编辑器下方），取得文章内容，<strong>然后应用&rsquo;the_content&rsquo;的filter</strong>，再做一些去除tag的工作。<strong>总结：</strong>the_excerpt_rss就是取得the_content的输出，然后去除HTML标签。</p>
<p>我们hook了&rsquo;the_content&rsquo;，所添加的内容，自然会进入the_excerpt_rss的输出（只是html tag被抹掉了），所以不要再hook &lsquo;the_excerpt_rss&rsquo;了，以免造成内容重复！当然对于那些有精力写excerpt的牛人另当别论。</p>
<p>我目前的做法就是将处理函数hook到&rsquo;the_content&rsquo;和&rsquo;the_content_rss&rsquo;这两个上面。</p>]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=571</link>
			<category domain="http://chungwoo.org.ru//?cid=2">BLOGGER</category>
			<pubDate>2009-05-14 10:50</pubDate>
		</item>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=570</guid>
			<title>用.htaccess实现Feed跳转的方法</title>
			<author>admin</author>
			<description><![CDATA[分成下面几个方面:&nbsp;
<ol>
    <li>关于WordPress的feed输出格式 </li>
    <li>关于.htaccess文件和URL重写 </li>
    <li>关于Feed托管(烧录)服务 </li>
    <li>利用.htaccess实现Feed无缝切换 </li>
</ol>
<p>国内很多blogger喜欢用子域名来绑定Feed, 大多类似这样的格式: http://feed.getfreeware.net. 我不知道具体从什么时候开始(也许是Feedsky提供子域名绑定服务以后), 这种形式的feed输出开始流行起来, 我访问过得国内blog站点, 十有八九都会提供并推荐给读者用这种地址订阅RSS输出.</p>
<p>但是我更倾向于使用WordPress原始的Feed形态, 一来, 增加并修改子域名的A记录, CNAME记录比较麻烦(可能是曾经操作失误留下的阴影), 二来, 我在猜想, 使用网站的一级域名为基础发布Feed, 会不会对PR值有所贡献.(而且在Google Webmaster Tools里面可以被自动侦测到).</p>
<p><span id="more-626"></span></p>
<p>完成同一件事情, 有很多种方法, 对于使用者来说, 自己熟悉, 容易实现, 并利于以后维护的方法是首选. 选择用.htaccess文件控制Feed, 我要做的只是在根目录下修改这个文件, 一旦发生错误, 我只要还原成备份的文件就可以了. 而且我不需要等域名生效的时间, 可以立马观察结果.</p>
<p><strong><font size="3">1. 关于WordPress的feed输出格式</font></strong></p>
<p>我们最好先了解一下WordPress会输出什么样的Feed格式, 这样在写RewriteRule的时候会更清楚明白, 更灵活.</p>
<p>对于多数模板, 都会使用bloginfo(&rsquo;rss2_url&rsquo;)这个tag来获取Feed地址. 如果是新安装的WordPress, 输出格式是这样的: <font color="#008000">http://example.com/?feed=rss2</font>, 这里要注意的是, 参数指定了输出rss2.0格式的feed, 有些人喜欢用atom的,那么输出的地址格式是这样的: <font color="#008000">http://example.com/?feed=atom</font>.</p>
<p>当然, 多数人会启用permalink, 也就是固定链接, 自定义链接格式, 随便怎么称呼吧. 当你选择了一种固定链接以后, <strong>bloginfo(&rsquo;rss2_url&rsquo;)</strong>输出结果会变为: </p>
<ul>
    <li><font color="#008000">http://example.com/feed</font>, 或者是, </li>
    <li><font color="#008000">http://example.com/feed/</font> </li>
</ul>
<p>如果你选择的固定链接格式没有以&rdquo;/&rdquo;结尾, 比如<a title="免费软件资讯站" target="_blank" href="http://getfreeware.net/">本站</a>使用像这样<a title="http://getfreeware.net/archives/617.html" href="http://getfreeware.net/archives/617.html">http://getfreeware.net/archives/617.html</a>格式, 会输出上述第一种不以&rdquo;/&rdquo;结尾的Feed格式. 反之, 固定链接如果以&rdquo;/&rdquo;结尾, 那么Feed的地址也相应的会输出以&rdquo;/&rdquo;结尾. 有些阅读器把两个地址分别对待，比如Google Reader；而有些阅读器会将后者自动改为前者，比如鲜果。</p>
<p>好了, 大体上知道这些够用了, WordPress官方文档有相关的资料: <a title="http://codex.wordpress.org/WordPress_Feeds" href="http://codex.wordpress.org/WordPress_Feeds">http://codex.wordpress.org/WordPress_Feeds</a>, 但实际上它没写清楚什么时候输出的Feed会以&rdquo;/&rdquo;结束</p>
<p>&nbsp;</p>
<p><strong><font size="3">2. 关于.htaccess文件和URL重写（mod_rewrite）</font></strong></p>
<p>在Apache服务器中，.htaccess文件(或者&quot;分布式配置文件&quot;)提供了针对每个目录改变配置的方法，即在一个特定的目录中放置一个包含指令的文件，其中的指令作用于此目录及其所有子目录。（<a title="查看Apache2.2版.htaccess文件说明" href="http://man.chinaunix.net/newsoft/Apache2.2_chinese_manual/howto/htaccess.html" target="_blank"><strong><font color="#d94a24">查看Apache2.2版.htaccess文件说明</font></strong></a>）</p>
<p>Apache的mod_rewrite是提供了强大URL操作的杀手级的模块，可以实现几乎所有你梦想的URL操作类型，其代价是你必须接受其复杂性，因为mod_rewrite的主要障碍就是初学者不容易理解和运用，即使是Apache专家有时也会发掘出mod_rewrite的新用途。（<a title="查看Apache2.2版URL重写指南" href="http://man.chinaunix.net/newsoft/Apache2.2_chinese_manual/misc/rewriteguide.html" target="_blank"><strong><font color="#d94a24">查看Apache2.2版URL重写指南</font></strong></a>）</p>
<p>我们需要将mod_rewrite模块提供的一些指令加到网站根目录下的.htaccess文件中， 使得用户访问网站的时候，指令生效并做出相应的处理。</p>
<p><font size="3"><strong>3. 关于Feed托管(烧录)服务</strong></font></p>
<p>很多blogger都会使用诸如Feedburner或者Feedsky的托管服务。</p>
<p>使用托管的优点是减轻自己服务器的负担，可以获得一些免费增值服务，比如数据统计等，还有就是可以通过托管服务赚钱。</p>
<p>但是缺点也很明显，Feed托管以后，要使用托管商的网址，国外的托管商在国内访问受限制，而国内托管商服务不稳定，没有公信力。</p>
<p>那么两全其美的方法就是，仍然使用自己的域名输出Feed，但在&ldquo;背地里&rdquo;将Feed转向自己烧录的地址。这样就可以在不影响订阅用户的前提下，自由的切换Feed转向。下面的内容就是具体的实现方法。</p>
<p><font size="3"><strong>4. 利用.htaccess实现Feed无缝切换</strong></font></p>
<p>我的.htaccess文件是这样写的：</p>
<blockquote>
<p>&nbsp;</p>
<ol>
    <li>&lt;IfModule mod_rewrite.c&gt; </li>
    <li>RewriteEngine On </li>
    <li>RewriteBase / </li>
    <li>RewriteCond %{QUERY_STRING} ^feed=(rss|rss2|rdf|atom|feed)$ [NC,OR] </li>
    <li>RewriteCond %{REQUEST_URI} ^/(feed|wp-atom|wp-feed|wp-rss|wp-rdf)(.*)$ [NC] </li>
    <li>RewriteCond %{HTTP_USER_AGENT} !^.*(Gecko|MSIE|Opera|FeedBurner|FeedValidator|Feedsky|xianguo-rssbot) [NC] </li>
    <li>RewriteRule (.*) <font color="#0000ff">http://feedproxy.google.com/getfreeware</font>? [L,R=307] </li>
    <li>RewriteCond %{REQUEST_FILENAME} !-f </li>
    <li>RewriteCond %{REQUEST_FILENAME} !-d </li>
    <li>. RewriteRule . /index.php [L] </li>
    <li>. &lt;/IfModule&gt; </li>
</ol>
</blockquote>
<p>如果你懒得花时间了解这些指令，可以直接将其复制到服务器的.htaccess文件中，<strong><font color="#0000ff">记得把其中的蓝色地址换成你自己的烧录地址</font></strong>。</p>
<p>简单说明一下：</p>
<p>第4行，匹配形如<font color="#008000">http://example.com/?feed=rss2</font>的请求；</p>
<p>第5行，可以匹配形如<font color="#008000">http://example.com/feed</font>或者是<font color="#008000">http://example.com/feed/</font> 的请求；</p>
<p>第6行，排除烧录服务的Feed抓取（避免陷入无限循环），并<strong>排除用户通过浏览器的直接请求</strong>，比如，用户直接在浏览器输入<font color="#008000">http://example.com/feed/</font>，不会发生跳转；</p>
<p>第7行，将符合条件的请求进行307重定向到我的Feed地址；</p>
<p>第8-10行，是启用固定链接后WordPress自动加入的。</p>
<p>这样一来，只要改变第7行的烧录地址（蓝色部分），就可以实现在Feedburner和Feedsky间的无缝切换。而且，当用户直接在浏览器中原始输出的地址，也不会暴露跳转地址，但用户使用阅读器订阅的时候，看到的则是跳转后的Feed。</p>]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=570</link>
			<category domain="http://chungwoo.org.ru//?cid=1">wordpress</category>
			<pubDate>2009-05-14 09:46</pubDate>
		</item>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=569</guid>
			<title>收集一些wordpress模版</title>
			<author>admin</author>
			<description><![CDATA[Arthemia Free <br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/4fkamkhz0ucourhybyo.jpg" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/arthemia-free/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />------------------------------------------------ <br /><br />Quick Facts Wp Theme <br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/320qwodudfyvk2l0c2t8.jpg" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/quick-facts-wp-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />------------------------------------------------ <br /><br />IMBO Wp Theme <br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/0zgml0wcwh5m92hlu8sa.png" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/imbo-wp-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />------------------------------------------------ <br />Linoluna Wp Theme <br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/cqumq0072ya9fvhqc9yk.jpg" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/linoluna-wp-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br /><br /><br /><br />------------------------------------------------ <br />Red Carpet Magazine <br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/yuic3priklwzp4vkry7.jpg" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/red-carpet-magazine/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />------------------------------------------------ <br />Max Magazine <br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/2veslvb8egvoe3bejfm.jpg" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/max-magazine/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />------------------------------------------------ <br />Insider <br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/10ea9lv55jmvuv0wpth8.jpg" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/insider/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />------------------------------------------------ <br />Google Gmail Wp Theme <br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/d8naly9xxbfphxr1pc.jpg" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/google-gmail-wp-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />------------------------------------------------ <br />Amanda Wp Theme <br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/30xqgo31o5xen2vml89y.jpg" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/amanda-wp-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />------------------------------------------------ <br /><br />nice 5 wordpress templates must see <br /><br /><br /><br />Pixeled WordPress Theme <br /><br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/ismfpo7hqhj2es8h82vr.jpg" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/pixeled-wordpress-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br />......................................................... <br /><br /><br />insic-wp WordPress Theme <br /><br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/6aczmvwjpyiek4fll26.jpg" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/insic-wp/</td>
        </tr>
    </tbody>
</table>
<br /><br />......................................................... <br /><br /><br /><br />Snapshot Wp Gallery Themes <br /><br /><br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/jqcokac3pgzaf6fkubd.jpg" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/snapshot-wp-gallery-themes/</td>
        </tr>
    </tbody>
</table>
<br /><br />......................................................... <br /><br /><br />infinity-wp-theme <br /><br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/hkxzi0kth0i2ixrid1l3.jpg" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/infinity-wp-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br />......................................................... <br /><br /><br />freemium-wp-theme <br /><br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/i3dkcw59bccjcw8b78mb.jpg" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/freemium-wp-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br />......................................................... <br /><br />4 Free Premium Wordpress themes New <br /><br /><br />TodayAutoBlog WpTheme <br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/57kq6l9qgk4nlswakhul.png" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/todayautoblog-wptheme/</td>
        </tr>
    </tbody>
</table>
<br /><br />--------------------------- <br /><br /><br /><br /><br />FreebiesPoint Wp Theme <br /><br /><br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/tulhb8347gq3drxw3il.jpg" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/freebiespoint-wp-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br />--------------------------- <br /><br />ZinePress WpTheme <br /><br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/oc07a77pppinbbruc85l.jpg" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/zinepress-wptheme/</td>
        </tr>
    </tbody>
</table>
<br /><br />--------------------------- <br /><br />ComFy Magazine <br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/71dixm5m795ckjwmu4rd.png" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/comfy-magazine/</td>
        </tr>
    </tbody>
</table>
<br /><br />--------------------------- <br /><br />4 Free Premium Personal Wordpress themes <br /><br /><br /><br /><br />Coffee Desk Wp theme <br /><br /><br />Demo <br /><img title="Image" alt="Image" src="http://www.io3.us/images/eud8hkfq30o2tmx1yg5.jpg" border="0" /> <br /><br />Download <br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/coffee-desk-wp-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />--------------------------------------------------------- <br /><br /><br /><br />Watercolor Wp Theme <br /><br /><br />Demo <br /><img title="Image" alt="Image" src="http://www.io3.us/images/7wp6x3ylgrorvey7zlc.jpg" border="0" /> <br /><br />Download <br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/fun-wp-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />--------------------------------------------------------- <br /><br /><br /><br /><br />Black Pearl Wp Theme <br /><br /><br /><br />Demo <br /><img title="Image" alt="Image" src="http://www.io3.us/images/dztrblj8xoenyyvtk160.jpg" border="0" /> <br /><br />Download <br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/black-pearl-wp-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />--------------------------------------------------------- <br /><br /><br /><br />Fun wp Theme <br /><br />Demo <br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/watercolor-wp-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br />Download <br /><img title="Image" alt="Image" src="http://www.io3.us/images/b4k7t7ohvmliouy8llo.jpg" border="0" /> <br /><br /><br />--------------------------------------------------------- <br /><br />4 free premium wordpress themes <br /><br /><br />Gamezine <br /><br />Demo <br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://web2feel.com/gamezine/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/gamezine/</td>
        </tr>
    </tbody>
</table>
<br /><br />-------------------- <br /><br /><br />Malawak Magazine <br /><br />Demo <br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://www.paddsolutions.com/wpmag/malawak</td>
        </tr>
    </tbody>
</table>
<br />Download <br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/malawak-magazine/</td>
        </tr>
    </tbody>
</table>
<br /><br />------------------ <br /><br /><br />Clubvista Wp theme <br /><br />Demo <br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://sitearena.com/blog/</td>
        </tr>
    </tbody>
</table>
<br />Download <br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/clubvista-wp-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />--------------------------------------- <br /><br />ClassicMag <br /><br /><br />Demo <br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wpjunction.com/themes/classicmag/</td>
        </tr>
    </tbody>
</table>
<br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/classicmag/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />3 free premium wordpress templates very new <br /><br />Rock Solid Theme <br /><br />Demo and download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/rock-solid-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br />------------------ <br /><br />TM Blog Theme <br /><br />Demo and download <br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/tm-blog-theme/</td>
        </tr>
    </tbody>
</table>
<br />-------------------------------- <br /><br />WP-Tube Premium <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/wptube-video-wordpress-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />SAy thanks to keep it alive <br /><br />4 Free Premium Wordpress themes <br /><br /><br />Angley Theme <br /><br />Demo and download <br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/angley-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br />Stitches Theme <br /><br />Demo and download <br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/stitches-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />OneRoom <br /><br />Demo and download <br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/oneroom/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />Wooden ZigZag <br /><br />Demo and download <br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/wooden-zigzag/</td>
        </tr>
    </tbody>
</table>
<br /><br />Tomodachi Wp Theme <br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/medtpuk8ba9m1ff4punx.jpg" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/tomodachi-wp-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />iBizPress Tech <br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/fk8rhmfd2l7msv2srd6d.jpg" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/ibizpress-tech/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />Singapore Gadgets <br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/2h4hbvas8audh4569x.jpg" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/singapore-gadgets/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />Compositio Wordpress Theme <br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/v7d1gygxhyn1jpdsbaj.png" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/compositio-wordpress-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />Evidens - Wordpress Theme <br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/j47ckq0ibjnof23s3km3.png" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/evidens-wordpress-theme/</td>
        </tr>
    </tbody>
</table>
<br /><br /><br />Fervens Wp Theme <br /><br /><img title="Image" alt="Image" src="http://ihostimg.info/images/2z7rz73phpewmv7jyujk.png" border="0" /> <br /><br /><br />Download <br /><br />
<table cellspacing="1" cellpadding="3" width="90%" align="center" border="0">
    <tbody>
        <tr>
            <td><span class="genmed"><strong>Code:</strong></span></td>
        </tr>
        <tr>
            <td class="code">http://wparchive.com/fervens-theme/</td>
        </tr>
    </tbody>
</table>]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=569</link>
			<category domain="http://chungwoo.org.ru//?cid=1">wordpress</category>
			<pubDate>2009-04-19 02:31</pubDate>
		</item>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=568</guid>
			<title>提高网站的权重</title>
			<author>admin</author>
			<description><![CDATA[<p><span style="FONT-FAMILY: Times New Roman">1.<span style="FONT-SIZE: small"> &nbsp; &nbsp; &nbsp; &nbsp;</span></span>权重不等于排名<br /><span style="FONT-FAMILY: Times New Roman">2.<span style="FONT-SIZE: small"> &nbsp; &nbsp; &nbsp; &nbsp;</span></span>权重对排名有着非常的德影响<br /><span style="FONT-FAMILY: Times New Roman">3.<span style="FONT-SIZE: small"> &nbsp; &nbsp; &nbsp; &nbsp;</span></span>整站权重的提高有利于内页的排名</p>
<p>1.外链比较多,并且有一些网站排名很高的网站外链.</p>
<p>2.本站的原创内容很多,日访问量较高.</p>
<p>3. 具备独立IP的网站,搜索引擎会认为权重更高一些.</p>
<p>4,域名注册的时间,时间越早,权重会越高.</p>
<p>5.网站收录的时间,越早,权重会越高.</p>
<p>6.网站要保证经常能访问,不稳定的主机会影响网站的权重和排名.</p>
<p><span style="COLOR: #ff0000"><strong>下面是另一篇提高权重的文章！</strong></span></p>
<p>今天我们来探讨一下SEO优化之如何提高网站权重的问题一、什么是网站的权重权重即网站在SEO中的重要性，权威性。SEO给一个网站的一种待遇。英文：Page Strrngth</p>
<p>1. 权重不等于排名</p>
<p>2. 权重对排名有着非常的大影响</p>
<p>3. 整站权重的提高有利于内页的排名</p>
<p><strong>二、影响网站权重的因素</strong></p>
<p><strong>1.网站存在的时间</strong></p>
<p>网站从被搜索收录开始，每一天的存在都是价值的积累。2.域名</p>
<p>(1)域名后缀gov edu</p>
<p>(2)域名时间</p>
<p>域名的因素比较小，是因为普通的网站几乎不用考虑。而域名存在时间也是没有办法改变的。</p>
<p><strong>3.网站内容</strong></p>
<p>来源(1)原创</p>
<p>文字能力：个人站长最重要的能力</p>
<p>网上从未出现的</p>
<p>来源(2)用户创造</p>
<p>所谓Web2.0网站的特点，通过用户的原创来获取内容。</p>
<p>来源(3)转载</p>
<p>适量的转载是可以的，但是转载内容会遇到版权及许可问题，随着网站的不断发展，转载就会受到越来越多的限制。</p>
<p>过多的转载，会降低一个网站的权重。</p>
<p>来源(4)改编</p>
<p>改编还是伪原创?这是一个问题。</p>
<p>大型网站也在改变，但他们不是在制作所谓的伪原创。</p>
<p>搜索引擎是否能够识别出伪原创?</p>
<p>来源(5)扫描</p>
<p>许多个人站长采取的方法;扫描</p>
<p>版权问题：网站小的没人理你，网站大了就被找上门来。</p>
<p>搜索引擎的目的，是为了给搜索者提供最准确的高质量的内容，这也是搜索引擎在竞争经烈的市场中获胜的最重要技术手段，所以网站优化中的内容优化，就是使自己网站的内容有价值，最起码应该让搜索引擎这样认为</p>
<p><strong>4.网站的稳定性</strong></p>
<p>一个经常打不开的网站，在搜索引擎中的眼中，不会是一个好网站。甚至是网站的打开速度都是一个重要问题。</p>
<p><strong>5.网站的活性</strong></p>
<p>一个经常不更新的站点，会失去活性。特别是对于以大量文章为主的&ldquo;个人网站&rdquo;，如果停止了更新，权重就会慢慢降低。所以现在做个人站长也比较辛苦，不能做好了一放半年不管，否则流量会逐渐走低</p>
<p>企业站的问题?大部分企业站一般没有更新的能力，但企业站的搜索排名却比较高，是因为搜索引擎可以识别企业站。</p>
<p><strong>6.网站的诚信度</strong>Google除PR值以外，还有一个诚信指数。即通过对一些高质量网站的分析，给出一个&ldquo;诚信&rdquo;网站应该有的一些指标，并用这些指标来分析一个网站的诚信度。</p>
<p>这些诚信度指标有哪些?</p>
<p>详细的联系方式、是否有版权说明、公司电话、传真、地址、是否**等等。</p>
<p><strong>7.网站的链接</strong></p>
<p>链接和内容是网站优化中的最重要工作，不管搜索引擎的算法如何变化，甚至是，每天一变，但链接和内容永远最重要。</p>
<p>链接的价值不是IP，而是权重的传递。对搜索引擎而言，一个链接向你网站的链接，就相当于给你投了一个赞成票。</p>
<p>链接相关的词语：</p>
<p>高质量链接、友情链接、单项链接、链出数量、链接的相关性、链接的广泛性、内部链接、购买链接、垃圾链接、链接的稳定性、坏链接、锚文本</p>]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=568</link>
			<category domain="http://chungwoo.org.ru//?cid=3">SEO</category>
			<pubDate>2009-04-16 14:40</pubDate>
		</item>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=567</guid>
			<title>对外链的一点看法</title>
			<author>admin</author>
			<description><![CDATA[外链是所有seoer都必须做的，当时，最重要的还是大站反向链接，非常重要，但那是正规站必须的功课，而非正规站，随时都有被降权或拔毛危险的快速盈利站点，则无法取得友链，只能靠群发的方式增加外链。
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 但是很多群发软件早已经被国人用的不能再烂了，一个贴子带几十个，甚至几百个链接，导致百度降权。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 有一点是可以肯定的一个页面的链接越少越珍贵，越能提高权重，当时该站的PR值、更新频率等权重指标也是很重要的，但我们无法控制这个，必竟只能看到PR值，其它的量没法一个一个看，调查，只能是批量。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 那么，迅速出现几千个外链是否是好事，我这样认为，目前蜘蛛还是最重视标题，如果同一标题很短时间里出现N次，在N个网站出现，那么，这N个站里出现的外链是容易被百度降权的，暂时我是这么认为，但你也可以这么考虑，同一个好文章迅速被各大网站转载，这种可能性大吗？</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 今年3月份的时候，通过这个方式，艳照门事件最高到过近8.5万IP/日，而且较为持久，达到近一个月时间，最近，没有对这种方式进行验证，其实还是应该经常试验的，以了解百度的动向，当然，最好不用自己的服务器做实验。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 另外，5月份，有一个站长通过外链，排名一度很靠前，他有两个站，在百度搜索各种价值关键词，他都排在第一页，确实很猛，而且排名持续3－4个月的时间，他的方法不知道现在是否可行，完全可以试试，不过，他还是太大意的，被人一看就知道是垃圾的不能再垃圾的站，结果这个月初被百度拔毛了。很正常，这几个月，他也没少赚。有点挫折是正常的。</p>]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=567</link>
			<category domain="http://chungwoo.org.ru//?cid=2">BLOGGER</category>
			<pubDate>2009-04-16 14:39</pubDate>
		</item>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=566</guid>
			<title>SEO-成败在细节！</title>
			<author>admin</author>
			<description><![CDATA[<p>标题</p>
<p>&lt;title&gt;&lt;/title&gt;中间的内容</p>
<p><br />这里是历来seoer的必争之地，当然是最重要的，而且是百度变化最频繁的地方，要根据百度的排名规则，适当的做好这一部分。</p>
<p>每个关键词领域对标题有不同的规则，这种规则是如何形成的，不得而知，推测是百度蜘蛛根据各个站点出现的这类关键词的文章的一种综合整理，认为某种方式是对的，某种方式是错的，对错由百度算法决定，如果你把私服类关键词的标题排名规则硬加到减肥类关键词中去，是必败的，</p>
<p>一个很简单的方法，测试与观察。可以借鉴不同类关键词之间的相似之处</p>]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=566</link>
			<category domain="http://chungwoo.org.ru//?cid=3">SEO</category>
			<pubDate>2009-04-16 14:37</pubDate>
		</item>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=565</guid>
			<title>如何创造伪原创</title>
			<author>admin</author>
			<description><![CDATA[<div class="content">
<p style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0">很多人都在自己的SEO经验文章里提到&ldquo;伪原创&rdquo;这个概念，一般来说，无非是改改标题之类的小技巧，但怎么改才能让搜索引擎认为是新原创文章，这里面可是有些门道的哦。那么今天大鸟就拿自己的小站和admin5作为例子，来讲讲如何自己创造&ldquo;伪原创&rdquo;。</p>
<p style="MARGIN-LEFT: 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">一．&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 修改标题是关键</p>
<p>（1）数字替换法</p>
<p style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0">比如新浪教育的一篇文章，标题是：&ldquo;备战中考作文：五招让你的文章&ldquo;亮&rdquo;起来&rdquo;，在修改标题的时候，就完全可以改成：&ldquo;备战中考作文：三招让你的文章&ldquo;亮&rdquo;起来&rdquo;取而代之的，就是将文章里最不起眼或者你看的最不顺眼的两个特点删除即可。</p>
<p>（2）词语替换法</p>
<p style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0">同样也可以这样修改：&ldquo;备战中考作文：小技巧让你的文章&ldquo;亮&rdquo;起来&rdquo;这样在不删除文章内容的情况下就可以让搜索引擎认为至少标题是原创的。</p>
<p>（3）文字排序法</p>
<p style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0">还可以通过打乱顺序让你的标题看起来更加的不一样：&ldquo;中考作文备战：能让你的文章&ldquo;亮&rdquo;起来的五种招式&rdquo;，这样的顺序替换法，能让标题设置更加符合浏览者的思维习惯。</p>
<p style="MARGIN-LEFT: 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">二．&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 标题内容要忠于原版</p>
<p style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0">其实这一点对于很对人来说是废话，但也非常的重要，很多朋友为了真正的使搜索引擎认为自己的文章是原创，而将个标题改的面目全非，这样的结果不可取。</p>
<p style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0">标题中需要包含你的网站浏览者需要看到的因素，比如是做QQ站的，那么就应该在标题上凸显非主流啊，<a href="http://www.shineqq.com/">QQ空间</a>之类的标题，比如闪Q族的标题取的就很有意思：&ldquo;QQ空间热门推荐之QQ空间热门圣诞装饰大图素材&rdquo;</p>
<p style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0">所以不管怎么修改，第一是要忠于原文，第二是要加入符合浏览者需求的特色。</p>
<p style="MARGIN-LEFT: 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">三．&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 正文内容修改</p>
<p style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0">这一点很多人都会忽略，为什么呢？因为如果涉及到修改正文幅度太大，那还不如仿造着写一篇，所以很多SEOer只是简单的将标题改改就完事了。</p>
<p style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0">但搜索引擎看到的不仅是标题，正文内容也是其比较原创的重要参考因素，但也承认修改正文内容是非常费时费力，那么我们来看看如何快速的修改内容吧。</p>
<p style="MARGIN-LEFT: 36pt; TEXT-INDENT: -36pt; mso-list: l1 level1 lfo2; tab-stops: list 36.0pt">（1）&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 首段自我创造法</p>
<p style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0">自己来写首段，就像引言的作用一样，如果你有精力，就看完全文做个总结，放在首页，如果觉得没时间看，那么也很简单：自己编，而且一定要带上自己网站的关键词。</p>
<p>拿admin5来做比较，如果要我来写这样的引言，如下内容：</p>
<p style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0">&ldquo;很多站长都觉得做网站是一件很简单的事情，但真正做起来又觉得困难重重，SEO，网上赚钱，流量都困扰着大家，而这篇文章就是从细节上进行分析：如何修改文章标题和制造原创文章，希望可以给大家一些启示。&rdquo;</p>
<p style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0">一点实际内容都没有，但通过一定的语言组织，将SEO，网上赚钱，流量这些热门词以及文章标题重复了一遍，搜索引擎一看：哎呀小样，这文章内容没见过啊，收了！</p>
<p style="MARGIN-LEFT: 36pt; TEXT-INDENT: -36pt; mso-list: l1 level1 lfo2; tab-stops: list 36.0pt">（2）&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 文中插入链接</p>
<p style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0">这个是鬼道，但大家可以适当的用下，具体作用就是在别人采集你的时候，可以一并采集去，相当于增加了外链：你采集我，我就利用你，很公平的。</p>
<p style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0">这样的链接，我不推荐大家随便什么地方都加，这样显的很无聊，而且影响用户体验，那么如何修改和添加呢？</p>
<p style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0">比如在一些位置：&ldquo;专家说：今年中国经济会持续增长&rdquo;修改为：&ldquo;据admin5.com站长网专家透露：今年中国经济会持续增长&rdquo;</p>
<p style="MARGIN-LEFT: 36pt; TEXT-INDENT: -36pt; mso-list: l1 level1 lfo2; tab-stops: list 36.0pt">（3）&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 尾部带一句</p>
<p style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0">文章的结尾，就带一句：&ldquo;根据admin5专家观察，这样的理论和现象都是值得各位站长深思的，所以希望大家多做研究，争取总结出更多更好的经验。&rdquo;</p>
<p>最后一点是的确值得大家坚持和主要的：坚持更新！</p>
<p style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0">每天都更新文章，蜘蛛就会养成习惯，每天来网站上看看，有新内容马上抓取，点石互动SEO实力派丘仕达的新站，caogen.cc这个网站今年10月才上线，由于内容原创，质量高，更新快，一直受到搜索引擎的青睐，各项关键词都处于靠前的位置。经常更新并有原创的网站，才是搜索引擎的最爱，而总体上来说，想要排名好，更新是关键。</p>
<p style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0">其实搜索引擎优化，不仅仅是这些内容，但小的技巧上一定要注意，玩搜索引擎就是个细致活，所以不仅要会做，更要会思考，举一反三才能有快速的提高和进步。</p>
<div class="fixed"></div>
</div>
<!-- related posts -->
<div class="pagenavi" id="navigator"><span class="alignleft floatleft"><a href="http://blog.trajp.com/collection/a-very-good-friendship-links-check-page.html">一个很不错的友情链接检查页面</a></span> <span class="alignright floatright"><a href="http://blog.trajp.com/seo/teach-you-increase-the-weight-of-the-site.html">教你提高网站的权重！</a></span></div>]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=565</link>
			<category domain="http://chungwoo.org.ru//?cid=3">SEO</category>
			<pubDate>2009-04-16 14:34</pubDate>
		</item>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=564</guid>
			<title>php168乱码解决</title>
			<author>admin</author>
			<description><![CDATA[<div class="t_msgfont" id="postmessage_22">数据库编码不对！！可供选择的有latin1,gbk,utf8,big5 最好选择 latin1 在php168目录下的<br />mysql_config.php文件修改一下编码。<br />&lt;?php<br /><br />/**<br />* 以下变量需根据您的服务器说明档修改<br />*/<br />$dbhost = 'localhost';&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;// 数据库服务器(一般不必改)<br />$dbuser = 'xxxxxx;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;// 数据库用户名<br />$dbpw = 'xxxxx';&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;// 数据库密码<br />$dbname = 'xxxxx;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; // 数据库名<br />$pre='p8_';&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; // 网站表区分符 <br /><br />$database = 'mysql';&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;// 数据库类型(一般不必改)<br />$pconnect = 0;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; // 数据库是否持久连接(一般不必改)<br />$dbcharset = 'latin1';&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;// 数据库编码,如果出现网页乱码,你可以尝试改为gbk或latin1或utf8或big5,即可解决<br /><br />&nbsp; &nbsp; ?&gt;</div>
<div class="t_msgfont"></div>
<div class="t_msgfont">
<div class="t_msgfont" id="postmessage_25">首先在浏览器里右键选择编码里的utf-8<br />如果正常的话，去head.htm看编码</div>
</div>]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=564</link>
			<category domain="http://chungwoo.org.ru//?cid=4">网站建设</category>
			<pubDate>2009-03-31 14:06</pubDate>
		</item>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=563</guid>
			<title>mysql+php产生乱码原因</title>
			<author>admin</author>
			<description><![CDATA[<div class="t_msgfont" id="postmessage_23">一般mysql数据库默认的编码是utf8,如果这种编码与你的PHP网页不一致,可能就会造成MYSQL乱码. <br />MYSQL中创建表时会让你选择一种编码,如果这种编码与你的网页编码不一致,也可能造成MYSQL乱码. <br />MYSQL创建表时添加字段是可以选择编码的,如果这种编码与你的网页编码不一致,也可能造成MYSQL乱码. <br />用户提交页面的编码与显示数据的页面编码不一致,就肯定会造成PHP页面乱码. <br />如用户输入资料的页面是big5码, 显示用户输入的页面却是gb2312,这种100%会造成PHP页面乱码. <br />PHP页面字符集不正确. <br />PHP连接MYSQL数据库语句指定的编码不正确. <br />注意: <br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;很多人都怀疑mysql版本不一致会导致乱码,相信看了本说明你就不会这样认为了. <br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;平时你在某些网站看到的文字可能有几种编码, 如你看到一个繁体字,它有可能是big5编码,也有 可能是utf-8编码的,更有可能是gb码的,没错,也就是说有简体编码的繁体字,也有繁体编码的简体字,一定要了解这一点. <br />如果你是做一个简体编码的网页,编码定为GB2312,如果有香港和台湾地区的访客提交繁体的信息,就可能会造成乱码,解决方法: <br /><br />将网站编码设为 utf-8,这样可以兼容世界上所有字符, <br />如果网站已经运作了好久,已有很多旧数据,不能再更改简体中文的设定,那么建议将页面的编码设为 GBK, GBK与GB2312的区别就在于:GBK能比GB2312显示更多的字符,要显示简体码的繁体字,就只能用GBK. <br /><br /><br />使用mysql+php产生乱码的原因都了解得很清楚了,那么解决就不困难了. <br /><br />mysql+php产生乱码的解决办法: <br /><br />如果安装mysql的编码已不能更改,很多朋友是购买虚拟主机建立网站,无权更改MYSQL的安装编码,这一关我们可以跳过,因为只要后面的步聚正确,一样能解决乱码问题 <br />修改数据库编码，如果是数据库编码不正确,可以在phpmyadmin 执行如下命令: <br /><br /><br />ALTER DATABASE 'test' DEFAULT CHARACTER SET utf8 COLLATE utf8_bin <br /><br /><br />以上命令就是将test数据库的编码设为utf8.<br /><br />修改表的编码：<br /><br />ALTER TABLE 'category' DEFAULT CHARACTER SET utf8 COLLATE utf8_bin <br /><br /><br />以上命令就是将一个表category的编码改为utf8.<br /><br />修改字段的编码： <br /><br />ALTER TABLE 'test' CHANGE 'dd' 'dd' VARCHAR( 45 ) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL <br /><br /><br />以上命令就是将test表中 dd的字段编码改为utf8.<br /><br />如果是这种情况容易解决，只需检查下页面，修改源文件的charset即可. <br />这种情况也是修改页面charset即可. <br />在连接数据库的语句中. <br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;mysql_connect('localhost','user','password'); <br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;mysql_select_db('my_db'); <br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;mysql_query(&quot;set names utf8;&quot;);&nbsp;&nbsp;//select 数据库之后加多这一句 <br /><br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;为了避免PHP页面乱码的发生，PHP页面开始第一句 <br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;header(&quot;content-type:text/html; charset=utf-8&quot;); <br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;//强行指定页面的编码，以避免乱码 <br /><br /><br />注意: <br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;照以上方法修改以后只能保证你新插入的数据不会乱码,举个例:如果你用户已提交的数据是BIG5,你却想通过以上方法改为可以在GB2312的网页正确显示是不可能的, 这种文字内码的变换只能通过另写程序来解决.</div>
<!--++ plugin_code qcomic begin--><!--++ plugin_code qcomic end-->]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=563</link>
			<category domain="http://chungwoo.org.ru//?cid=4">网站建设</category>
			<pubDate>2009-03-31 14:04</pubDate>
		</item>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=562</guid>
			<title>MySQL 5.0.16 乱码问题处理办法</title>
			<author>admin</author>
			<description><![CDATA[<div class="t_msgfont" id="postmessage_21">1 设置phpMyAdmin<br /><br />　　Language：Chinese simplified (zh-utf-8)<br /><br />　　MySQL 字符集：UTF-8 Unicode (utf8)<br /><br />　　MySQL 连接校对：gbk_chinese_ci<br /><br />2 创建数据库时<br /><br />　　整理设置成 gbk_chinese_ci<br /><br />3 用SQL建立表中<br /><br />　　ENGINE=MyISAM DEFAULT CHARSET=gbk;<br />　　ENGINE=InnoDB DEFAULT CHARSET=gbk AUTO_INCREMENT=40 ;<br /><br />4 检查表结构中<br /><br />　　varchar(100) 的整理属性为gbk_chinese_ci<br />　　其它类型的整理属性为空<br /><br />5 代码中加上<br /><br />　　$db-&gt;query(&quot;SET CHARACTER SET GBK&quot;); 　Linux下需要，Windows下不需要<br />　　这个相当于Connection Character Sets and Collations</div>
<!--++ plugin_code qcomic begin--><!--++ plugin_code qcomic end-->]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=562</link>
			<category domain="http://chungwoo.org.ru//?cid=4">网站建设</category>
			<pubDate>2009-03-31 14:03</pubDate>
		</item>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=561</guid>
			<title>MySQL中文乱码，phpmyadmin乱码，php乱码 产生原因及其解决方法</title>
			<author>admin</author>
			<description><![CDATA[<div class="t_msgfont" id="postmessage_20">乱码产生原因 <br /><br />mysql字符编码是版本4.1引入的,支持多国语言,而且一些特性已经超过了其他的数据库系统。<br /><br />我们可以在MySQL Command Line Client 下输入如下命令查看mysql的字符集<br /><br />mysql&gt; SHOW CHARACTER SET;<br />+----------+-----------------------------+---------------------+--------+<br />| Charset&nbsp;&nbsp;| Description&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; | Default collation&nbsp;&nbsp;| Maxlen |<br />+----------+-----------------------------+---------------------+--------+<br />| big5&nbsp; &nbsp; | Big5 Traditional Chinese&nbsp; &nbsp; | big5_chinese_ci&nbsp; &nbsp; | 2&nbsp; &nbsp;&nbsp; &nbsp;|<br />| dec8&nbsp; &nbsp; | DEC West European&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; | dec8_swedish_ci&nbsp; &nbsp; | 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| cp850&nbsp; &nbsp; | DOS West European&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; | cp850_general_ci&nbsp; &nbsp; | 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| hp8&nbsp; &nbsp;&nbsp; &nbsp;| HP West European&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;| hp8_english_ci&nbsp; &nbsp;&nbsp; &nbsp;| 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| koi8r&nbsp; &nbsp; | KOI8-R Relcom Russian&nbsp; &nbsp;&nbsp; &nbsp;| koi8r_general_ci&nbsp; &nbsp; | 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| latin1&nbsp;&nbsp;| cp1252 West European&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;| latin1_swedish_ci&nbsp;&nbsp;| 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| latin2&nbsp;&nbsp;| ISO 8859-2 Central European | latin2_general_ci&nbsp;&nbsp;| 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| swe7&nbsp; &nbsp; | 7bit Swedish&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; | swe7_swedish_ci&nbsp; &nbsp; | 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| ascii&nbsp; &nbsp; | US ASCII&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;| ascii_general_ci&nbsp; &nbsp; | 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| ujis&nbsp; &nbsp; | EUC-JP Japanese&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;| ujis_japanese_ci&nbsp; &nbsp; | 3&nbsp; &nbsp;&nbsp; &nbsp;|<br />| sjis&nbsp; &nbsp; | Shift-JIS Japanese&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; | sjis_japanese_ci&nbsp; &nbsp; | 2&nbsp; &nbsp;&nbsp; &nbsp;|<br />| hebrew&nbsp;&nbsp;| ISO 8859-8 Hebrew&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; | hebrew_general_ci&nbsp;&nbsp;| 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| tis620&nbsp;&nbsp;| TIS620 Thai&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; | tis620_thai_ci&nbsp; &nbsp;&nbsp; &nbsp;| 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| euckr&nbsp; &nbsp; | EUC-KR Korean&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;| euckr_korean_ci&nbsp; &nbsp; | 2&nbsp; &nbsp;&nbsp; &nbsp;|<br />| koi8u&nbsp; &nbsp; | KOI8-U Ukrainian&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;| koi8u_general_ci&nbsp; &nbsp; | 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| gb2312&nbsp;&nbsp;| GB2312 Simplified Chinese&nbsp;&nbsp;| gb2312_chinese_ci&nbsp;&nbsp;| 2&nbsp; &nbsp;&nbsp; &nbsp;|<br />| greek&nbsp; &nbsp; | ISO 8859-7 Greek&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;| greek_general_ci&nbsp; &nbsp; | 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| cp1250&nbsp;&nbsp;| Windows Central European&nbsp; &nbsp; | cp1250_general_ci&nbsp;&nbsp;| 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| gbk&nbsp; &nbsp;&nbsp; &nbsp;| GBK Simplified Chinese&nbsp; &nbsp;&nbsp; &nbsp;| gbk_chinese_ci&nbsp; &nbsp;&nbsp; &nbsp;| 2&nbsp; &nbsp;&nbsp; &nbsp;|<br />| latin5&nbsp;&nbsp;| ISO 8859-9 Turkish&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; | latin5_turkish_ci&nbsp;&nbsp;| 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| armscii8 | ARMSCII-8 Armenian&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; | armscii8_general_ci | 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| utf8&nbsp; &nbsp; | UTF-8 Unicode&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;| utf8_general_ci&nbsp; &nbsp; | 3&nbsp; &nbsp;&nbsp; &nbsp;|<br />| ucs2&nbsp; &nbsp; | UCS-2 Unicode&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;| ucs2_general_ci&nbsp; &nbsp; | 2&nbsp; &nbsp;&nbsp; &nbsp;|<br />| cp866&nbsp; &nbsp; | DOS Russian&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; | cp866_general_ci&nbsp; &nbsp; | 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| keybcs2&nbsp;&nbsp;| DOS Kamenicky Czech-Slovak&nbsp;&nbsp;| keybcs2_general_ci&nbsp;&nbsp;| 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| macce&nbsp; &nbsp; | Mac Central European&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;| macce_general_ci&nbsp; &nbsp; | 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| macroman | Mac West European&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; | macroman_general_ci | 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| cp852&nbsp; &nbsp; | DOS Central European&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;| cp852_general_ci&nbsp; &nbsp; | 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| latin7&nbsp;&nbsp;| ISO 8859-13 Baltic&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; | latin7_general_ci&nbsp;&nbsp;| 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| cp1251&nbsp;&nbsp;| Windows Cyrillic&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;| cp1251_general_ci&nbsp;&nbsp;| 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| cp1256&nbsp;&nbsp;| Windows Arabic&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;| cp1256_general_ci&nbsp;&nbsp;| 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| cp1257&nbsp;&nbsp;| Windows Baltic&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;| cp1257_general_ci&nbsp;&nbsp;| 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| binary&nbsp;&nbsp;| Binary pseudo charset&nbsp; &nbsp;&nbsp; &nbsp;| binary&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;| 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| geostd8&nbsp;&nbsp;| GEOSTD8 Georgian&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;| geostd8_general_ci&nbsp;&nbsp;| 1&nbsp; &nbsp;&nbsp; &nbsp;|<br />| cp932&nbsp; &nbsp; | SJIS for Windows Japanese&nbsp;&nbsp;| cp932_japanese_ci&nbsp;&nbsp;| 2&nbsp; &nbsp;&nbsp; &nbsp;|<br />| eucjpms&nbsp;&nbsp;| UJIS for Windows Japanese&nbsp;&nbsp;| eucjpms_japanese_ci | 3&nbsp; &nbsp;&nbsp; &nbsp;|<br />+----------+-----------------------------+---------------------+--------+<br />36 rows in set (0.02 sec)<br /><br />或者mysql官方的<br /><a href="http://dev.mysql.com/doc/refman/5.1/zh/charset.html" target="_blank">http://dev.mysql.com/doc/refman/5.1/zh/charset.html</a><br /><br />MySQL 4.1的字符集支持(Character Set Support)有两个方面：字符集(Character set)和排序方式(Collation)。对于字符集的支持细化到四个层次: 服务器(server)，数据库(database)，数据表(table)和连接(connection)。<br />查看系统的字符集和排序方式的设定可以通过下面的两条命令：<br /><br />mysql&gt; SHOW VARIABLES LIKE 'character_set_%';<br />+--------------------------+-------------------------------------------+<br />| Variable_name&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;| Value&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;|<br />+--------------------------+-------------------------------------------+<br />| character_set_client&nbsp; &nbsp; | latin1&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;|<br />| character_set_connection | latin1&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;|<br />| character_set_database&nbsp;&nbsp;| latin1&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;|<br />| character_set_filesystem | binary&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;|<br />| character_set_results&nbsp; &nbsp; | latin1&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;|<br />| character_set_server&nbsp; &nbsp; | latin1&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;|<br />| character_set_system&nbsp; &nbsp; | utf8&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;|<br />| character_sets_dir&nbsp; &nbsp;&nbsp; &nbsp;| D:MySQLMySQL Server 5.0sharecharsets |<br />+--------------------------+-------------------------------------------+<br />8 rows in set (0.06 sec)<br /><br />mysql&gt; SHOW VARIABLES LIKE 'collation_%';<br />+----------------------+-------------------+<br />| Variable_name&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;| Value&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;|<br />+----------------------+-------------------+<br />| collation_connection | latin1_swedish_ci |<br />| collation_database&nbsp;&nbsp;| latin1_swedish_ci |<br />| collation_server&nbsp; &nbsp; | latin1_swedish_ci |<br />+----------------------+-------------------+<br />3 rows in set (0.02 sec)<br /><br />上面列出的值就是系统的默认值。latin1默认校对规则是latin1_swedish_ci，默认是latin1的瑞典语排序方式.<br />为什么呢默认会是latin1_swedish_ci呢,追溯一下mysql历史很容易发现<br /><br />1979年，一家瑞典公司Tcx欲开发一个快速的多线程、多用户数据库系统。Tcx 公司起初想利用mSQL和他们自己的快速低级例程 (Indexed Sequential Access Method，ISAM)去连接数据库表，然而，在一些测试以后得出结论：mSQL对其需求来说不够快速和灵活。这就产生了一个连接器数据库的新SQL接口，它使用几乎和mSQL一样的API接口。这个API被设计成可以使那些由mSQL而写的第三方代码更容易地移植到MySQL。 <br /><br />相信如果mysql是中国开发的，那么汉语也是默认编码了<br /><br />当然我们也可以自己需要修改mysql的默认字符集<br />在mysql配置文档my.ini，找到如下两句：<br /><br />[mysql]<br /><br />default-character-set=latin1<br /><br />和<br /><br /># created and no character set is defined<br />default-character-set=latin1<br /><br />修改后面的值就可以。<br /><br />这里不建议改，仍保留默认值<br />也就是说启动 mysql时，如果没指定指定一个默认的的字符集，这个值继承自配置文件中的； <br />此时 character_set_server 被设定为这个默认的字符集； 当创建一个新的数据库时，<br />除非明确指定，这个数据库的字符集被缺省设定为 character_set_server； 当选定了一个数据库时，<br />character_set_database 被设定为这个数据库默认的字符集； 在这个数据库里创建一张表时，<br />表默认的字符集被设定为 character_set_database，也就是这个数据库默认的字符集； <br />当在表内设置一栏时，除非明确指定，否则此栏缺省的字符集就是表默认的字符集。<br /><br />这样问题就随之而来了，假如一数据库是gbk编码。如果访问数据库时没指定其的字符集是gbk。<br />那么这个值将继承系统的latin1，这样就做成mysql中文乱码。<br /><br />乱码解决方法<br /><br />要解决乱码问题，首先必须弄清楚自己数据库用什么编码。如果没有指明，将是默认的latin1。<br />我们用得最多的应该是这3种字符集 gb2312，gbk，utf8。<br /><br />那么我们如何去指定数据库的字符集呢？下面也gbk为例<br /><br />【在MySQL Command Line Client创建数据库 】<br /><br />mysql&gt; CREATE TABLE `mysqlcode` (<br />&nbsp; &nbsp; -&gt; `id` TINYINT( 255 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,<br />&nbsp; &nbsp; -&gt; `content` VARCHAR( 255 ) NOT NULL<br />&nbsp; &nbsp; -&gt; ) TYPE = MYISAM CHARACTER SET gbk COLLATE gbk_chinese_ci;<br />Query OK, 0 rows affected, 1 warning (0.03 sec)<br /><br />mysql&gt; desc mysqlcode;<br />+---------+-----------------------+------+-----+---------+----------------+<br />| Field&nbsp;&nbsp;| Type&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;| Null | Key | Default | Extra&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; |<br />+---------+-----------------------+------+-----+---------+----------------+<br />| id&nbsp; &nbsp;&nbsp; &nbsp;| tinyint(255) unsigned | NO&nbsp;&nbsp;| PRI |&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;| auto_increment |<br />| content | varchar(255)&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; | NO&nbsp;&nbsp;|&nbsp; &nbsp; |&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;|&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; |<br />+---------+-----------------------+------+-----+---------+----------------+<br />2 rows in set (0.02 sec)<br /><br />其中后面的TYPE = MYISAM CHARACTER SET gbk COLLATE gbk_chinese_ci;<br />就是指定数据库的字符集，COLLATE (校勘)，让mysql同时支持多种编码的数据库。<br /><br />当然我们也可以通过如下指令修改数据库的字符集<br />alter database da_name default character set 'charset'.<br /><br />客户端以 gbk格式发送 ，可以采用下述配置:<br /><br />SET character_set_client='gbk'<br />SET character_set_connection='gbk'<br />SET character_set_results='gbk'<br /><br />这个配置就等价于 SET NAMES 'gbk'。<br /><br /><br />现在对刚才创建的数据库操作<br /><br />mysql&gt; use test;<br />Database changed<br /><br />mysql&gt; insert into mysqlcode values(null,'3721');<br />ERROR 1406 (22001): Data too long for column 'content' at row 1<br /><br />没有指定字符集为gbk，插入时出错<br /><br />mysql&gt; set names 'gbk';<br />Query OK, 0 rows affected (0.02 sec)<br /><br />指定字符集为 gbk<br /><br />mysql&gt; insert into mysqlcode values(null,'3721');<br />Query OK, 1 row affected (0.00 sec)<br /><br />插入成功<br /><br />mysql&gt; select * from mysqlcode;<br />+----+-----------+<br />| id | content&nbsp;&nbsp;|<br />+----+-----------+<br />| 1&nbsp;&nbsp;| php爱好着 |<br />+----+-----------+<br />1 row in set (0.00 sec)<br /><br />在没有指定字符集gbk时读取也会出现乱码，如下<br /><br />mysql&gt; select * from mysqlcode;<br />+----+---------+<br />| id | content |<br />+----+---------+<br />| 1&nbsp;&nbsp;| php???&nbsp;&nbsp;|<br />+----+---------+<br />1 row in set (0.00 sec)<br /><br /><br />【在phpmyadmin创建数据库,并指定字符集】<br /><br /><br /><br /><br /><br /><br />表类型根据自己需要选，这里选MyISAM(支持全文检索);<br />整理选择 gbk_chinese_ci 也就是gbk字符集<br />gbk_bin 简体中文, 二进制。gbk_chinese_ci 简体中文, 不区分大小写。<br /><br />在刚才创建的数据库插入数据库<br /><br /><br /><br /><br /><br /><br />再浏览时发现是乱码<br /><br /><br /><br /><br /><br />为什么呢？是因为数据库为gbk字符集，而我们操作时没有指定为gbk<br />回到数据库首页<br /><br /><br /><br /><br /><br />可以看到 mysql 连接校对默认的latin1_bin。我们将其改为gbk_chinese_ci<br /><br /><br /><br /><br /><br />再插入一条数据。看，这条已经正常了<br /><br /><br /><br /><br /><br /><br />【解决php读取数据库乱码】<br /><br /><font color="#ff0000">仍以数据库mysqlcode为例 <br />CODE:[复制到剪切板]&lt;?php <br />$conn = mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;&quot;);<br />mysql_query(&quot;set names 'gbk'&quot;);//这就是指定数据库字符集，一般放在连接数据库后面就系了<br />mysql_select_db(&quot;test&quot;);<br /><br />$sql = &quot;select * from mysqlcode&quot;;<br />$result = mysql_query($sql,$conn);<br /><br />?&gt;<br />&lt;head&gt;<br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot; /&gt;<br />&lt;title&gt;mysql 字符编码&lt;/title&gt;<br />&lt;/head&gt;<br /><br />&lt;body&gt;<br />&lt;table width=&quot;300&quot; height=&quot;32&quot; border=&quot;1&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt; <br />&nbsp;&nbsp;&lt;tr&gt;<br />&nbsp; &nbsp; &lt;td width=&quot;71&quot; align=&quot;center&quot;&gt;id&lt;/td&gt;<br />&nbsp; &nbsp; &lt;td width=&quot;229&quot; align=&quot;center&quot;&gt;内容&lt;/td&gt;<br />&nbsp;&nbsp;&lt;/tr&gt;<br />&lt;?php while($row = mysql_fetch_assoc($result)){<br />echo &quot;&nbsp;&nbsp;<br />&lt;tr&gt;<br />&nbsp; &nbsp; &lt;td align=&quot;center&quot;&gt;&quot;.$row['id'].&quot;&lt;/td&gt;<br />&nbsp; &nbsp; &lt;td&gt;&quot;.$row['content'].&quot;&lt;/td&gt;<br />&nbsp;&nbsp;&lt;/tr&gt;&quot;;<br />}?&gt;&nbsp;&nbsp;<br />&lt;/table&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;<br />&lt;?php mysql_free_result($result);?&gt; <br /><br />如果我们将mysql_query(&quot;set names 'gbk'&quot;);注释掉，肯定时乱码<br /><br /></font><br /><br /><br />加上那句又正常了<br /><br /><br /><br /><br /><br />一句话<br />你数据库用什么编码，在对数据库操作之前就set names '你的编码';<br /><br /><br />ps:页面申明编码：在HTML代码HEAD里面，可以用&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=&quot;XXX&quot; /&gt;来告诉浏览器网页采用了什么编码，目前中文网站开发中主要用的是GB2312和UTF-8两种编码。</div>
<!--++ plugin_code qcomic begin--><!--++ plugin_code qcomic end-->]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=561</link>
			<category domain="http://chungwoo.org.ru//?cid=4">网站建设</category>
			<pubDate>2009-03-31 14:02</pubDate>
		</item>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=560</guid>
			<title>解决php读取数据库乱码</title>
			<author>admin</author>
			<description><![CDATA[实例代码:<br />&lt;?php<br />$conn = mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;&quot;);<br />mysql_query(&quot;set names 'gbk'&quot;);//这就是指定数据库字符集，一般放在连接数据库后面就系了<br />mysql_select_db(&quot;test&quot;);<br /><br />$sql = &quot;select * from mysqlcode&quot;;<br />$result = mysql_query($sql,$conn);<br /><br />?&gt;<br />&lt;head&gt;<br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot; /&gt;<br />&lt;title&gt;mysql 字符编码&lt;/title&gt;<br />&lt;/head&gt;<br /><br />&lt;body&gt;<br />&lt;table width=&quot;300&quot; height=&quot;32&quot; border=&quot;1&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt; <br />&nbsp;&nbsp;&lt;tr&gt;<br />&nbsp; &nbsp; &lt;td width=&quot;71&quot; align=&quot;center&quot;&gt;id&lt;/td&gt;<br />&nbsp; &nbsp; &lt;td width=&quot;229&quot; align=&quot;center&quot;&gt;内容&lt;/td&gt;<br />&nbsp;&nbsp;&lt;/tr&gt;<br />&lt;?php while($row = mysql_fetch_assoc($result)){<br />echo &quot;&nbsp;&nbsp;<br />&lt;tr&gt;<br />&nbsp; &nbsp; &lt;td align=\&quot;center\&quot;&gt;&quot;.$row['id'].&quot;&lt;/td&gt;<br />&nbsp; &nbsp; &lt;td&gt;&quot;.$row['content'].&quot;&lt;/td&gt;<br />&nbsp;&nbsp;&lt;/tr&gt;&quot;;<br />}?&gt;&nbsp;&nbsp;<br />&lt;/table&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;<br />&lt;?php mysql_free_result($result);?&gt; <br /><br />如果我们将mysql_query(&quot;set names 'gbk'&quot;);注释掉，肯定时乱码<br />加上那句又正常了<br /><br /><br />注意: set names 必须在连接数据库之后,执行sql语句之前!<br />一句话<br />你数据库用什么编码，在对数据库操作之前就set names '你的编码';<br /><br />ps:页面申明编码：在HTML代码HEAD里面，可以用&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=&quot;XXX&quot; /&gt;来告诉浏览器网页采用了什么编码，目前中文网站开发中主要用的是GB2312和UTF-8两种编码。]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=560</link>
			<category domain="http://chungwoo.org.ru//?cid=4">网站建设</category>
			<pubDate>2009-03-31 14:01</pubDate>
		</item>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=559</guid>
			<title>网站编码格式（UTF-8~GB2312）转换</title>
			<author>admin</author>
			<description><![CDATA[<p>偶们建站的朋友很多时候需要不同的编码格式，有点需要GBK，而有的又需要UTF-8格式。 <br />　　其实在编码之间转换是很简单的。下面我介绍一下我的方法，那么大家以后就不用等官方出程序就自己转换就搞定。瞬间完成! <br />　　首先我们需要两个工具： <br />　　1.说塔文件编码转换器 <br />　　天空下载：<a href="http://www.skycn.com/soft/48790.html" target="_blank"><font color="#2f5fa1">http://www.skycn.com/soft/48790.html</font></a> <br />　　中关村下线：<a href="http://xiazai.zol.com.cn/detail/33/329745.shtml" target="_blank"><font color="#2f5fa1">http://xiazai.zol.com.cn/detail/33/329745.shtml</font></a> <br />　　2.Search and Replace <br />　　天空下载：<a href="http://www.skycn.com/soft/3668.html" target="_blank"><font color="#2f5fa1">http://www.skycn.com/soft/3668.html</font></a> <br />　　下面开始操作： <br />　　1.打开说塔文件编码转换器修改你的设置，建议使用自动编码识别。 </p>
<p><img src="http://www.zxx6.com/upload_files/article/35/246_20080927100902_gEUzn.jpg" alt="" /><br /></p>
<p align="center"><a href="http://www.zxx6.com/upload_files/article/35/246_20080927100902_gEUzn.jpg" target="_blank"></a></p>
　　2.添加程序目录，将要转换的所有文件导入后&ldquo;执行转换&rdquo;搞定! <br />
<p align="center"><a href="http://www.zxx6.com/upload_files/article/35/246_20080927100947_C3FJJ.jpg" target="_blank"><img src="http://www.zxx6.com/upload_files/article/35/246_20080927100947_C3FJJ.jpg" alt="" /></a></p>
　　3.打开Search and replace添加程序目录，选择搜索子目录选项，选择全字匹配，修改文件过滤选项。 <br />　　假如要将UTF-8转GB2312则搜索内容填写&ldquo;charset=UTF-8&rdquo;，替换内容填写&ldquo;charset=GB2312&rdquo;。 <br />　　然后点击替换按钮。 <br />
<p align="center"><a href="http://www.zxx6.com/upload_files/article/35/246_20080927110920_w1lZ7.jpg" target="_blank"><img src="http://www.zxx6.com/upload_files/article/35/246_20080927110920_w1lZ7.jpg" alt="" /></a></p>
　　好了，就这样就搞定了。简单吧??哈哈，支持就顶一个哈! <br /><br /><strong><font color="#0000ff">注：此软件为绿色安装版，下载完之后无需安装就可以运行，但前提是一定要先有Microsoft.net framework 2.0的组件支持，如果您的电脑上没有这个组件，则需要下载安装。</font></strong>]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=559</link>
			<category domain="http://chungwoo.org.ru//?cid=4">网站建设</category>
			<pubDate>2009-03-31 13:59</pubDate>
		</item>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=558</guid>
			<title>给WordPress加上评论楼层支持分页</title>
			<author>admin</author>
			<description><![CDATA[<p>因Paged Comments 和wordpress-thread-comment 冲突，两者同时启用，wordpress-thread-comment将失效 ，只好删除该插件，启用偶爱偶家的wp-paged-comments，而这个评论分页插件没有楼层提示，有点遗憾，百度了一下，方法整理如下：<br />　　修改主题的comment.php：</p>
<p>&nbsp;&nbsp; 1. 找到&lt;ol class=&quot;commentlist&quot;&gt;，在这句下面添加:<br />　　&lt;?php $relax_comment_count=1; ?&gt;<br />　　针对全部评论实现楼层数提示，配合wp-paged-comments评论分页我站加入:<br />　　&lt;?php $relax_comment_count=($_GET['wpc'] &gt; 1) ? 1+3*($_GET['wpc']-1) : 1 ; ?&gt; <br />　　上面数字3为每页显示评论数，根据自己的情况更换吧。<br />&nbsp;&nbsp; 2. 一般来说这句下面会有一段&lt;li&gt;...&lt;/li&gt;的语句，在这段语句下面添加:<br />　　&lt;?php $relax_comment_count++; ?&gt;<br />&nbsp;&nbsp; 3. 上面说到的那句&lt;li&gt;...&lt;/li&gt;中可以找到一句&lt;?php comment_text() ?&gt;，在此句上方添加:<br />　　&lt;div class=&quot;commentcount&quot;&gt;&lt;?php echo $relax_comment_count; ?&gt;&lt;/div&gt;</p>
<p>　　这个位置的代码根据自己喜好和当前主题放置，我站的此处代码是在&lt;div class=&quot;commentmetadata&quot;&gt;上面加入 :<br />&lt;div class=&quot;commentcount&quot;&gt;您抢到了&lt;?php comments_number('沙发哦', '沙发哦', '总%楼层' );?&gt; 第&lt;?php echo $relax_comment_count; ?&gt;楼&lt;/div&gt;&lt;br&gt;<br />　　添加了总楼层数，然而会把回复的评论也当作楼层，遗憾，昨晚和wady讨论暂时没办法完美解决。<br />　　中午，Wady又辛苦了下完美解决了这个问题，方法如下:<br />　　下面这段放到你要显示的地方:<br />&lt;?php echo ($max_page &gt; 1) ? &quot;抢到总共&quot; . $max_page . &quot;层的第&quot; . $relax_comment_count . &quot;楼了&quot; : &quot;抢到沙发了。&quot;;?&gt;<br />　　在&lt;?php if ($comments) : ?&gt; 的下面添加:<br />&lt;div class=&quot;commentcount&quot;&gt;&lt;?php $max_page = $wpdb-&gt;get_var(&quot;SELECT count(*) FROM $wpdb-&gt;comments WHERE comment_post_ID = &quot; . get_the_ID() . &quot; AND comment_parent = 0 AND comment_approved = 1&quot;); ?&gt;&lt;/div&gt;&lt;br&gt;&nbsp;&nbsp;&nbsp; '过滤了删除垃圾评论后暂时占位的楼层&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<p>　　接下来可自定义css来调整一下commentcount的表现形式，在style.css里添加如下内容：<br />　　.commentcount {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; font-family: Georgia,sans-serif;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; font-size: 24px;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; font-weight: bold;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; color: #e0e0d0;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; float: left;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=558</link>
			<category domain="http://chungwoo.org.ru//?cid=1">wordpress</category>
			<pubDate>2009-03-29 04:51</pubDate>
		</item>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=557</guid>
			<title>为Blogger添加自己的图标</title>
			<author>admin</author>
			<description><![CDATA[<p><a href="http://lukexzt.blogspot.com/2008/12/blogger.html" target="_blank" rel="external"></a></p><br /><br /><a href="http://chungwoo.org.ru//?action=show&amp;id=557" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=557</link>
			<category domain="http://chungwoo.org.ru//?cid=2">BLOGGER</category>
			<pubDate>2009-03-21 20:01</pubDate>
		</item>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=556</guid>
			<title>为Blogger添加站内搜索(二)</title>
			<author>admin</author>
			<description><![CDATA[只要将以下代码加入到新建的小工具栏里：<br /><blockquote>&lt;div id='busca'&gt;<br />&lt;form action='/search' id='searchthis' method='get' style='display:inline;'&gt;&lt;input class='txt_busca' id='search-box' name='q' type='text'/&gt;&lt;input id='search-btn' type='submit' value='搜索文章'/&gt;&lt;/form&gt;<br />&lt;/div&gt;</blockquote><br />就OK了：）<br />]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=556</link>
			<category domain="http://chungwoo.org.ru//?cid=2">BLOGGER</category>
			<pubDate>2009-03-21 19:59</pubDate>
		</item>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=555</guid>
			<title>为Blogger添加导航栏（二）</title>
			<author>admin</author>
			<description><![CDATA[<p>布局---页面元素---添加小工具那里加入一个&ldquo;HTML/JavaScript&rdquo;，添加如下代码：<br /><br /></p>
<blockquote>&lt;style type=&quot;text/css&quot;&gt;<br /><span style="COLOR: rgb(255,0,0)">.align-center{ margin:0 auto; /* 居中 这个是必须的，，其它的属性非必须 */ width:500px; /* 给个宽度 顶到浏览器的两边就看不出居中效果了 */ background:#ffffff; /* 背景色 */ text-align:center; /* 文字等内容居中 */ }</span><br /><br />/*导航条，不是最上面那个东西，是下面主页、关于什么那里。*/<br />#navsite h5 {<br />display: none;<br />}<br />#navsite ul {<br />padding: 3px 0;<br />margin-left: 0;<br />border-bottom: 1px solid #778;<br />font: bold 12px Verdana, sans-serif;<br />}<br />#navsite ul li {<br />list-style: none;<br />margin: 0;<br />display: inline;<br />}<br />#navsite ul li a {<br />padding: 3px 0.5em;<br />margin-left: 3px;<br />border: 1px solid #778;<br />border-bottom: none;<br />background: #DDE;<br />text-decoration: none;<br />}<br />#navsite ul li a:link {<br />color: #448;<br />}<br />#navsite ul li a:visited {<br />color: #667;<br />}<br />#navsite ul li a:link:hover, #navsite ul li a:visited:hover {<br />color: #000;<br />background: #AAE;<br />border-color: #227;<br />}<br />#navsite ul li a#current {<br />background: white;<br />border-bottom: 1px solid white;<br />}<br />&lt;/style&gt;<br /><br />&lt;div id=&quot;navsite&quot; <span style="COLOR: rgb(255,0,0)">class=&quot;align-center&quot;</span>&gt;<br />&lt;h5&gt;Site navigation:&lt;/h5&gt;<br />&lt;ul&gt;<br /><span style="COLOR: rgb(51,51,255)">&lt;li&gt;&lt;a href=&quot;http://lukexzt.blogspot.com/&quot;&gt;首页&lt;/a&gt;&lt;/li&gt;<br />&lt;li&gt;&lt;a href=&quot;http://lukexzt.blogspot.com/search/label/%E8%B5%84%E6%BA%90%E5%85%B1%E4%BA%AB-%E5%85%8D%E8%B4%B9%E7%A9%BA%E9%97%B4&quot;&gt;免费空间推荐&lt;/a&gt;&lt;/li&gt;<br />&lt;li&gt;&lt;a href=&quot;http://lukexzt.blogspot.com/search/label/Blogger%E6%8A%80%E5%B7%A7&quot;&gt;Blogger技巧汇总&lt;/a&gt;&lt;/li&gt;<br />&lt;li&gt;&lt;a href=&quot;http://www.blogger.com/home&quot;&gt;控制台&lt;/a&gt;&lt;/li&gt;</span><br />&lt;/ul&gt;<br />&lt;/div&gt;</blockquote>
<p><br /><br /><span style="FONT-WEIGHT: bold">然后将该小工具拖曳到日志栏的上面。</span><br /><br /><br /><br />注：<br /></p>
<ul>
    <li><span class="fullpost">如果不想让其居中（有些模板居中有问题）就去掉<span style="COLOR: rgb(255,0,0)">红色</span>部分</span></li>
</ul>
<ul>
    <li><span class="fullpost"><span style="COLOR: rgb(51,102,255)">蓝色</span>部分要改成自己的链接，想添加的话就按照相同的代码添加就行。</span></li>
</ul>
<ul>
    <li><span class="fullpost">如果粘贴好上面的代码测试时出现有的导航显示为&ldquo; li&rdquo;的情况,就在代码里面把&lt;/li&gt;中/li之前的空格去掉就行了。</span></li>
</ul>
<p><span class="fullpost"><br /></span><a href="http://lukexzt.blogspot.com/2009/02/blogger_13.html" target="_blank" rel="external"></a></p>]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=555</link>
			<category domain="http://chungwoo.org.ru//?cid=2">BLOGGER</category>
			<pubDate>2009-03-21 19:57</pubDate>
		</item>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=554</guid>
			<title>为Blogger添加导航栏</title>
			<author>admin</author>
			<description><![CDATA[步骤&mdash;&mdash;<br /><br />1.进入后台的&ldquo;修改HTML&rdquo;，记得<span style="FONT-WEIGHT: bold; COLOR: rgb(255,0,0)">备份模板</span>！<br /><br />2.定义两个颜色的变量，为的是让字体颜色和鼠标经过时的颜色都可以在&ldquo;布局&rdquo;中里方便的修改。<br /><br />查找 Variable name 可以找到一大堆定义的变量，在所有的变量定义之前加入<br /><blockquote>&lt;Variable name=&quot;headerTextColour&quot; description=&quot;导航栏颜色&quot;<br />type=&quot;color&quot; default=&quot;#000&quot; value=&quot;#006699&quot;&gt;<br />&lt;Variable name=&quot;headerCornersColour&quot; description=&quot;导航栏鼠标经过颜色&quot;<br />type=&quot;color&quot; default=&quot;#000&quot; value=&quot;#940f04&quot;&gt;</blockquote><br /><br />3.添加CSS以定义导航栏区域。<br /><br />查找 } 可以找到一大堆CSS代码，在任意一个 } （<span style="FONT-WEIGHT: bold">推荐最后一个 } </span>）后回车再起一行，加入<br /><blockquote>#menubar h2 {display:none;}<br />#menubar ul {<br />list-style: none;<br />}<br />#menubar li {<br />float: left;<br />}<br />#menubar a:link, #menubar a:visited, #menubar a:hover {<br />padding: 5px;<br />display: block;<br />color: $headerTextColour;<br />}<br />#menubar a:hover {<br />background-color: $headerCornersColour;<br />}</blockquote><br /><br />4.在Html里相应的区域加入<br /><blockquote>&lt;b:section class='menubar' id='menubar' maxwidgets='1' showaddelement='yes'&gt;<br />&lt;b:widget id='LinkList<span style="COLOR: rgb(255,0,0)">99</span>' locked='true' title='Menubar' type='LinkList'/&gt;<br />&lt;/b:section&gt;</blockquote>
<p><br />注：加入此代码的位置将<span style="FONT-WEIGHT: bold">决定导航栏的位置</span>，请自行寻找位置添加,多试试就掌握规律了。</p>
<p>放在<br /></p>
<blockquote>&lt;div id='main-wrapper'&gt;</blockquote>
<p><br />下面一行的。<br />红色的数字是设定为99是为了避免和其他的小部件编号冲突，可随意更改。<br /><br />5.保存模板之后(<span style="FONT-WEIGHT: bold">此时按预览是看不到导航栏的,要在布局中添加好一个导航项才能看到导航栏!</span>)就可以到&ldquo;布局&rdquo;里添加链接或到&ldquo;字体和颜色&rdquo;里修改相应的颜色了。<br /></p>]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=554</link>
			<category domain="http://chungwoo.org.ru//?cid=2">BLOGGER</category>
			<pubDate>2009-03-21 19:56</pubDate>
		</item>
		<item>
			<guid>http://chungwoo.org.ru//?action=show&amp;id=553</guid>
			<title>为Blogger添加站内搜索</title>
			<author>admin</author>
			<description><![CDATA[Google了下，发现利用Google实现站内搜索相当容易，效果也很好，相当迅速。<br /><br />只要将以下代码加入到新建的小工具栏里就行。<br /><span class="fullpost"><br /><blockquote>&lt;form method=get action=&quot;http://www.google.com/search&quot;&gt;<br />&lt;input type=text name=q&gt;<br />&lt;input type=submit name=btnG value=&quot;Google 搜索&quot;&gt;<br />&lt;input type=hidden name=ie value=UTF-8&gt;<br />&lt;input type=hidden name=oe value=UTF-8&gt;<br />&lt;input type=hidden name=hl value=zh-CN&gt;<br />&lt;input type=hidden name=domains value=<span style="COLOR: rgb(255,0,0)"><a href="http://chungwoo.blogspot.com/">http://chungwoo.blogspot.com/</a></span>&gt;<br />&lt;input type=hidden name=sitesearch value=<span style="COLOR: rgb(255,0,0)"><a href="http://chungwoo.blogspot.com/">http://chungwoo.blogspot.com/</a></span>&gt;<br />&lt;/form&gt;</blockquote></span>]]></description>
			<link>http://chungwoo.org.ru//?action=show&amp;id=553</link>
			<category domain="http://chungwoo.org.ru//?cid=2">BLOGGER</category>
			<pubDate>2009-03-21 19:50</pubDate>
		</item>
	</channel>
</rss>
