﻿<?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>久久寻网-重阳博客</title>
	<atom:link href="http://www.99xunle.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.99xunle.com</link>
	<description>把博客当作一种投资,时间久了就会看到她价值的所在.</description>
	<lastBuildDate>Thu, 24 Jun 2010 09:09:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>人品计算器</title>
		<link>http://www.99xunle.com/archives/864</link>
		<comments>http://www.99xunle.com/archives/864#comments</comments>
		<pubDate>Thu, 24 Jun 2010 09:09:16 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[乱七八糟]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[人品计算器]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/archives/864</guid>
		<description><![CDATA[
Your browser does not support iframes.

&#160;
一个很有意思的php人品计算器，输入名字就可以看其人品的，快看看你朋友的人品如何吧。
&#160;
重阳:     你的人品值是：98     你是世人的榜样！ 
人品计算器 ： http://www.99xunle.com/rpjs/
&#160;
站外引用 :
 &#60;iframe src=&#34;http://www.99xunle.com/rpjs/index.php&#34; frameborder=&#34;0&#34; width=&#34;360&#34; scrolling=&#34;no&#34; height=&#34;180&#34;&#62; &#60;p&#62;Your browser does not support iframes.&#60;/p&#62; &#60;/iframe&#62;
]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://www.99xunle.com/rpjs/index.php" frameborder="0" width="360" scrolling="no" height="180">
<p>Your browser does not support iframes.</p>
<p></iframe>
<p>&#160;</p>
<p>一个很有意思的php人品计算器，输入名字就可以看其人品的，快看看你朋友的人品如何吧。</p>
<p>&#160;</p>
<blockquote><p><strong>重阳</strong>:     <br />你的人品值是：98     <br />你是世人的榜样！ </p></blockquote>
<p>人品计算器 ： <a href="http://www.99xunle.com/rpjs/">http://www.99xunle.com/rpjs/</a></p>
<p>&#160;</p>
<p>站外引用 :</p>
<p> <textarea rows="rows" cols="cols">&lt;iframe src=&quot;http://www.99xunle.com/rpjs/index.php&quot; frameborder=&quot;0&quot; width=&quot;360&quot; scrolling=&quot;no&quot; height=&quot;180&quot;&gt; &lt;p&gt;Your browser does not support iframes.&lt;/p&gt; &lt;/iframe&gt;</textarea></p>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/864/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>利用php从URL中获取域名的函数</title>
		<link>http://www.99xunle.com/archives/863</link>
		<comments>http://www.99xunle.com/archives/863#comments</comments>
		<pubDate>Mon, 31 May 2010 04:53:51 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[PHP相关]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[获取域名]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/archives/863</guid>
		<description><![CDATA[一个php函数，很方便地从url中获取域名。
//从url中获得域名
function get_domain($url){
    $domainpreg = &#34;/[\w-]+\.(com&#124;net&#124;edu&#124;org&#124;gov&#124;cc&#124;biz&#124;info&#124;me&#124;name&#124;tk&#124;tw&#124;cn)(\.(cn&#124;hk&#124;tw&#124;cn&#124;ru))?/&#34;;
    preg_match($domainpreg, $url, $matches);
    if(count($matches) &#62; 0) {
        return $matches[0];
    }else{
        $rs = parse_url($url);
        $main_url = $rs[&#34;host&#34;];
  [...]]]></description>
			<content:encoded><![CDATA[<p>一个php函数，很方便地从url中获取域名。</p>
<pre class="brush: php">//从url中获得域名
function get_domain($url){
    $domainpreg = &quot;/[\w-]+\.(com|net|edu|org|gov|cc|biz|info|me|name|tk|tw|cn)(\.(cn|hk|tw|cn|ru))?/&quot;;
    preg_match($domainpreg, $url, $matches);
    if(count($matches) &gt; 0) {
        return $matches[0];
    }else{
        $rs = parse_url($url);
        $main_url = $rs[&quot;host&quot;];
        if(!strcmp(long2ip(sprintf(&quot;%u&quot;,ip2long($main_url))),$main_url)) {
            return $main_url;
        }else{
            $arr = explode(&quot;.&quot;,$main_url);
            $count=count($arr);
            $endArr = array(&quot;com&quot;,&quot;net&quot;,&quot;org&quot;,&quot;co&quot;);
            if (in_array($arr[$count-2],$endArr)){
                $domain = $arr[$count-3].&quot;.&quot;.$arr[$count-2].&quot;.&quot;.$arr[$count-1];
            }else{
                $domain =  $arr[$count-2].&quot;.&quot;.$arr[$count-1];
            }
            return $domain;
        }
    }
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/863/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>阎凤娇照片非诚勿扰</title>
		<link>http://www.99xunle.com/archives/862</link>
		<comments>http://www.99xunle.com/archives/862#comments</comments>
		<pubDate>Sat, 15 May 2010 03:30:55 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[乱七八糟]]></category>
		<category><![CDATA[照片]]></category>
		<category><![CDATA[阎凤娇]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/archives/862</guid>
		<description><![CDATA[不知到谁用过我电脑，桌面上有一组阎凤娇的照片，不便公开，这事情最近也很闹疼，我也从百忙中抽出时间来和大家闹一闹。
我有照片一组，打算删掉，销毁证据 ^_^。
如有需要珍藏者，可以联系我，非诚勿扰！
]]></description>
			<content:encoded><![CDATA[<p>不知到谁用过我电脑，桌面上有一组阎凤娇的照片，不便公开，这事情最近也很闹疼，我也从百忙中抽出时间来和大家闹一闹。</p>
<p>我有照片一组，打算删掉，销毁证据 ^_^。</p>
<p>如有需要珍藏者，可以联系我，非诚勿扰！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/862/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>google.com今日做出改动</title>
		<link>http://www.99xunle.com/archives/861</link>
		<comments>http://www.99xunle.com/archives/861#comments</comments>
		<pubDate>Thu, 06 May 2010 03:15:24 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[搜索引擎]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google.com]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/archives/861</guid>
		<description><![CDATA[我指的是Google.com做出的改动
 
&#160;
而Google.com.hk 还是原样
]]></description>
			<content:encoded><![CDATA[<p>我指的是Google.com做出的改动</p>
<p><img src="http://i684.photobucket.com/albums/vv202/wnh3yang/google-new.jpg" /> </p>
<p>&#160;</p>
<p>而Google.com.hk 还是原样</p>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/861/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>开源矢量绘图工具inkscape</title>
		<link>http://www.99xunle.com/archives/860</link>
		<comments>http://www.99xunle.com/archives/860#comments</comments>
		<pubDate>Thu, 06 May 2010 02:14:03 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[软件推荐]]></category>
		<category><![CDATA[inkscape]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[矢量图]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/archives/860</guid>
		<description><![CDATA[Inkscape 是一款开放源代码的矢量图像编辑器，类似 Adobe Illustrator、 Corel Draw、 Freehand 或者 Xara X。不同的是 Inkscape 使用 Scalable Vector Graphics(SVG)——一种开放的基于 W3C XML 的标准，作为默认的文档格式。
nkscape 最初是作为 Sodipodi 的一个分支开始的，那是 2003 年晚些时候，由四名 Sodopodi 开发人员发起：Bryce Harrington、 MenTaLguY、 Nathan Hurst 以及 Ted Gould。我们的使命是创建一个完全兼容 Scalable Vector Graphics(SVG) 的绘图工具，使用 C++ 以及新的更加用户友好的接口(Gnome HIG 兼容)，以及构筑开放的，面向社区的开发进程。在短短数月这个项目发布了若干版本，展现了一系列意义重大的新特性和改进，并迅速奠定了 Inkscape 作为一款值得关注的开放源代码项目的基础。
 
相对于诸如 Photoshop 或者 Gimp 这样的光栅(位图)图像编辑器，Inkscape 使用矢量格式保存其图像信息。矢量图像是一种分辨率无关的对实际形状和对象的描述，以便你能看到图像。一个光栅化引擎使用这些信息并决定如何在任意分辨率或者缩放级别上绘制每一条线段或者曲线。 
相反的，位图(光栅)图像总是绑定一个特定的分辨率并将图像保存为一个像素矩阵。 
对于位图来说，矢量图像是一种补充，而不是替代。位图和矢量图有各自的用途，对于不同类型的事物具有各自的用处。位图更适合照片和某些类型的艺术品，而矢量图则更适合设计徽标、带有文字的图片、技术说明等。 
请注意 Inkscape 也可以导出和显示位图。导入的位图将成为你的矢量图像中另一个对象，你可以像对待其它类型的对象那样处理它(移动、变形、剪裁等等)。 
Scalable Vector [...]]]></description>
			<content:encoded><![CDATA[<p>Inkscape 是一款开放源代码的矢量图像编辑器，类似 Adobe Illustrator、 Corel Draw、 Freehand 或者 Xara X。不同的是 Inkscape 使用 Scalable Vector Graphics(SVG)——一种开放的基于 W3C XML 的标准，作为默认的文档格式。</p>
<p>nkscape 最初是作为 Sodipodi 的一个分支开始的，那是 2003 年晚些时候，由四名 Sodopodi 开发人员发起：Bryce Harrington、 MenTaLguY、 Nathan Hurst 以及 Ted Gould。我们的使命是创建一个完全兼容 Scalable Vector Graphics(SVG) 的绘图工具，使用 C++ 以及新的更加用户友好的接口(Gnome HIG 兼容)，以及构筑开放的，面向社区的开发进程。在短短数月这个项目发布了若干版本，展现了一系列意义重大的新特性和改进，并迅速奠定了 Inkscape 作为一款值得关注的开放源代码项目的基础。</p>
<p> <span id="more-860"></span>
<p>相对于诸如 Photoshop 或者 Gimp 这样的光栅(位图)图像编辑器，Inkscape 使用矢量格式保存其图像信息。矢量图像是一种分辨率无关的对实际形状和对象的描述，以便你能看到图像。一个光栅化引擎使用这些信息并决定如何在任意分辨率或者缩放级别上绘制每一条线段或者曲线。 </p>
<p>相反的，位图(光栅)图像总是绑定一个特定的分辨率并将图像保存为一个像素矩阵。 </p>
<p>对于位图来说，矢量图像是一种补充，而不是替代。位图和矢量图有各自的用途，对于不同类型的事物具有各自的用处。位图更适合照片和某些类型的艺术品，而矢量图则更适合设计徽标、带有文字的图片、技术说明等。 </p>
<p>请注意 Inkscape 也可以导出和显示位图。导入的位图将成为你的矢量图像中另一个对象，你可以像对待其它类型的对象那样处理它(移动、变形、剪裁等等)。 </p>
<p>Scalable Vector Graphics(SVG)是一款开放的，工业标准的，基于 XML 的矢量图像格式，由 W3C 开发。它正以迅猛的势头被业界广为接纳。今天，绝大部分矢量图像编辑器可以导入和导出 SVG，先进的浏览器(如 Firefox 和 Opera)可以无需使用插件直接现实它。对于 Internet Explorer，来自 Adobe 的SVG Viewer 插件可以显示 SVG。</p>
<p>inkscape 支持 Linux、 Windows 2000/2003/XP、 OSX、 FreeBSD、 Unix-like</p>
<p>inkscape 项目主页 <a title="http://www.inkscape.org/" href="http://www.inkscape.org/">http://www.inkscape.org/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/860/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>祝各位朋友五一劳动节快乐</title>
		<link>http://www.99xunle.com/archives/859</link>
		<comments>http://www.99xunle.com/archives/859#comments</comments>
		<pubDate>Fri, 30 Apr 2010 15:02:15 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[生活感悟]]></category>
		<category><![CDATA[劳动节]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/archives/859</guid>
		<description><![CDATA[这几天之所以更新很慢是被工作的事情困扰着，找到了好几家都觉得不怎么理想，还碰到了非常不愿意发生的事情，确实很悲剧&#8230;
5.1劳动节就要到了，还仍需努力。
祝各位朋友节日快乐！
]]></description>
			<content:encoded><![CDATA[<p>这几天之所以更新很慢是被工作的事情困扰着，找到了好几家都觉得不怎么理想，还碰到了非常不愿意发生的事情，确实很悲剧&#8230;</p>
<p>5.1劳动节就要到了，还仍需努力。</p>
<p>祝各位朋友节日快乐！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/859/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>街头霸王4 弹出IE 篡改主页</title>
		<link>http://www.99xunle.com/archives/858</link>
		<comments>http://www.99xunle.com/archives/858#comments</comments>
		<pubDate>Sat, 24 Apr 2010 09:00:47 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[电脑技巧]]></category>
		<category><![CDATA[篡改主页]]></category>
		<category><![CDATA[街头霸王4]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/archives/858</guid>
		<description><![CDATA[在某某网站下载的《街头霸王4》，其实是不能玩的，鄙视这种无耻的做法，你要玩就得把主页改成他们的网站，太无耻了吧，像这种无聊的导航网站www·1188·com打死我都不会设为首页的。
其实解决这种问题很简单，到3DM下载个免CD补丁，其实就是做个修改的游戏启动文件SF4Launcher.exe，我原来的之所以会修改首页就是在SF4Launcher.exe中做了手脚，再一次的鄙视。
 
以后再也不会去那网站下载了.他们碰到了我就是一悲剧。
www·1188·com 这种网址导航网站的推广手段太卑劣，通过非法途径篡改良民的首页。这是不可能有大作为的。
有IE主页被乱改的同学有需要帮忙的，我能提供力所能及的帮助。
请关注此贴，我从此将列一下有卑劣行为的网址导航站点。
黑名单站点：www·1188·com
]]></description>
			<content:encoded><![CDATA[<p>在某某网站下载的《街头霸王4》，其实是不能玩的，鄙视这种无耻的做法，你要玩就得把主页改成他们的网站，太无耻了吧，像这种无聊的导航网站www·1188·com打死我都不会设为首页的。</p>
<p>其实解决这种问题很简单，到3DM下载个免CD补丁，其实就是做个修改的游戏启动文件SF4Launcher.exe，我原来的之所以会修改首页就是在SF4Launcher.exe中做了手脚，再一次的鄙视。</p>
<p> <span id="more-858"></span>
<p>以后再也不会去那网站下载了.他们碰到了我就是一悲剧。</p>
<p>www·1188·com 这种网址导航网站的推广手段太卑劣，通过非法途径篡改良民的首页。这是不可能有大作为的。</p>
<p>有IE主页被乱改的同学有需要帮忙的，我能提供力所能及的帮助。</p>
<p>请关注此贴，我从此将列一下有卑劣行为的网址导航站点。</p>
<p>黑名单站点：www·1188·com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/858/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>siteuptime 提供免费的网站在线率统计</title>
		<link>http://www.99xunle.com/archives/856</link>
		<comments>http://www.99xunle.com/archives/856#comments</comments>
		<pubDate>Thu, 22 Apr 2010 07:19:17 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[互联网络]]></category>
		<category><![CDATA[siteuptime]]></category>
		<category><![CDATA[主机在线率]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/archives/856</guid>
		<description><![CDATA[为了检测网站主机的在线情况可以使用第三方的统计服务，siteuptime 就是个很好的选择，免费用户提供每小时检查一次的服务。
 
所谓在线率就是：既然搭建了网站就应永远使它保持运行状态，以保证来访者能随时登录。这原是顺理成章的要求，国外的虚拟主机提供商都普遍对其用户网站的在线率做出承诺。但在国内只有少数服务商明确承诺保证用户网站的在线率，大多数虚拟主机服务商因为受到带宽、硬件设备能力和技术管理能力的限制，很容易产生当机（Shutdown也就是“停掉机器”）问题，所以不能或者说不愿就此问题作公开“量化”的保证。 
siteuptime 效果可以见本博客底部。
siteuptime注册地址: http://www.siteuptime.com/&#160;&#160;&#160; (SiteUptime &#8211; Website Monitoring Service)
]]></description>
			<content:encoded><![CDATA[<p>为了检测网站主机的在线情况可以使用第三方的统计服务，siteuptime 就是个很好的选择，免费用户提供每小时检查一次的服务。</p>
<p> <span id="more-856"></span>
<p>所谓在线率就是：既然搭建了网站就应永远使它保持运行状态，以保证来访者能随时登录。这原是顺理成章的要求，国外的虚拟主机提供商都普遍对其用户网站的在线率做出承诺。但在国内只有少数服务商明确承诺保证用户网站的在线率，大多数虚拟主机服务商因为受到带宽、硬件设备能力和技术管理能力的限制，很容易产生当机（Shutdown也就是“停掉机器”）问题，所以不能或者说不愿就此问题作公开“量化”的保证。 </p>
<p>siteuptime 效果可以见本博客底部。</p>
<p>siteuptime注册地址: <a title="http://www.siteuptime.com/" href="http://www.siteuptime.com/">http://www.siteuptime.com/</a>&#160;&#160;&#160; (SiteUptime &#8211; Website Monitoring Service)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/856/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>最好的播放器smplayer</title>
		<link>http://www.99xunle.com/archives/854</link>
		<comments>http://www.99xunle.com/archives/854#comments</comments>
		<pubDate>Sat, 10 Apr 2010 12:51:10 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[软件推荐]]></category>
		<category><![CDATA[smplayer]]></category>
		<category><![CDATA[播放器]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/archives/854</guid>
		<description><![CDATA[前一段时间给大家推荐了《守望者》.我下载的是高清版本1.86G的视频文件，我用了很多播放器，比如暴风影音、QQ影音、QVOD播放器、GVOD等播放这部片子时都是很卡，难道是这电影本身的问题，或者是我机器卡的原因，放到同学的电脑上放映还是一样的卡。
 
于是我就又去寻找开源产业的播放器，smplayer 一款基于Mplayer 的开源播放器，虽然Mplayer 我也没用过。
当我用smplayer播放这部影片时，出奇的流畅。最大的特点就是它可以记住播放进度。
Smplayer就是我用过的最好的播放器啦。
推荐大家使用开源软件，这样你不用担心版权问题，最重要的一点是没有广告，而且性能要不那些商业软件的性能可能还要好，Smplayer就是个例子。
Smplayer下载：http://smplayer.sourceforge.net/downloads.php
]]></description>
			<content:encoded><![CDATA[<p>前一段时间给大家推荐了<a href="/archives/852" target="_blank">《守望者》</a>.我下载的是高清版本1.86G的视频文件，我用了很多播放器，比如暴风影音、QQ影音、QVOD播放器、GVOD等播放这部片子时都是很卡，难道是这电影本身的问题，或者是我机器卡的原因，放到同学的电脑上放映还是一样的卡。</p>
<p> <span id="more-854"></span>
<p>于是我就又去寻找开源产业的播放器，<a href="http://smplayer.sourceforge.net/" target="_blank">smplayer</a> 一款基于Mplayer 的开源播放器，虽然Mplayer 我也没用过。</p>
<p>当我用smplayer播放这部影片时，出奇的流畅。最大的特点就是它可以记住播放进度。</p>
<p>Smplayer就是我用过的最好的播放器啦。</p>
<p>推荐大家使用开源软件，这样你不用担心版权问题，最重要的一点是没有广告，而且性能要不那些商业软件的性能可能还要好，Smplayer就是个例子。</p>
<p>Smplayer下载：<a title="http://smplayer.sourceforge.net/downloads.php" href="http://smplayer.sourceforge.net/downloads.php">http://smplayer.sourceforge.net/downloads.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/854/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>wordpress开启Gzip减少网页加载时间</title>
		<link>http://www.99xunle.com/archives/853</link>
		<comments>http://www.99xunle.com/archives/853#comments</comments>
		<pubDate>Thu, 08 Apr 2010 02:51:30 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[PHP相关]]></category>
		<category><![CDATA[wordoress]]></category>
		<category><![CDATA[开启Gzip]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/archives/853</guid>
		<description><![CDATA[登录Google网站管理员工具，在“实验室”的“网站性能”里看到了“Page Speed 建议”。
/archives/836
详细信息：最多可减少 53.5 KB, 可减少 17 项请求, 可减少 3 次 DNS 查询
	启用 gzip 压缩
	合并外部 JavaScript
	尽量减少 DNS 查询次数
	合并外部 CSS 

因为调用了SyntaxHighlighter的js和CSS文件所以合并起来有些麻烦，关键的还是GZIP压缩。
php中很简单就可以开启Gzip功能。
在wordpress的index.php最开始加上如下代码。
/* 判断浏览器是否支持Gizp */
if( ereg('gzip',$_SERVER['HTTP_ACCEPT_ENCODING']) ){

	/* 排除不需要Gzip压缩的目录 */
	if( substr($_SERVER['REQUEST_URI'],0,10) != '/wp-content/uploads/' ) {
		ob_start('ob_gzhandler'); 		//打开Gzip压缩
	}

}
看看效果如何：
使用Gzip前

使用Gzip后

从图中可以看到启用Gzip后压缩了1 &#8211; 5.63/19.79 = 71.56% 。建议大家启用Gzip压缩网页，提高加载速度，节省网站流量。
]]></description>
			<content:encoded><![CDATA[<p>登录Google网站管理员工具，在“实验室”的“网站性能”里看到了“Page Speed 建议”。</p>
<pre class="brush: xml">/archives/836
详细信息：最多可减少 53.5 KB, 可减少 17 项请求, 可减少 3 次 DNS 查询
	启用 gzip 压缩
	合并外部 JavaScript
	尽量减少 DNS 查询次数
	合并外部 CSS </pre>
<p><span id="more-853"></span></p>
<p>因为调用了SyntaxHighlighter的js和CSS文件所以合并起来有些麻烦，关键的还是GZIP压缩。</p>
<p>php中很简单就可以开启Gzip功能。</p>
<p>在wordpress的index.php最开始加上如下代码。</p>
<pre class="brush: php">/* 判断浏览器是否支持Gizp */
if( ereg('gzip',$_SERVER['HTTP_ACCEPT_ENCODING']) ){

	/* 排除不需要Gzip压缩的目录 */
	if( substr($_SERVER['REQUEST_URI'],0,10) != '/wp-content/uploads/' ) {
		ob_start('ob_gzhandler'); 		//打开Gzip压缩
	}

}</pre>
<p>看看效果如何：</p>
<h5>使用Gzip前</h5>
<p><img alt="使用Gzip前" src="http://b8zdqw.bay.livefilestore.com/y1pAjFE8TFq_FYfP98verrg32SjK9HkUDC3OEVmeeSHDa3yrH8okXccKGZUMfH_DaBW1DmJfN4VEk0q3PkOaINiLwhwiF8ocuA-/Gzip123.jpg" /></p>
<h5>使用Gzip后</h5>
<p><img alt="使用Gzip后" src="http://public.bay.livefilestore.com/y1p-qJyQZUucWSJtNUc3PDTVLlA4yUpVe1sN1DJE7mYcbgS51mx8esQ99QbUkYtQWR1lTeEHnQFH8fem90NS-KIKg/Gzip321.jpg" /></p>
<p>从图中可以看到启用Gzip后压缩了1 &#8211; 5.63/19.79 = 71.56% 。建议大家启用Gzip压缩网页，提高加载速度，节省网站流量。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/853/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
