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

<channel>
	<title>我想网 &#187; PHP</title>
	<atom:link href="http://www.iwanna.cn/topics/develope/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iwanna.cn</link>
	<description></description>
	<lastBuildDate>Sat, 31 Jul 2010 15:12:14 +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>10个免费的报纸及杂志题材的WordPress主题</title>
		<link>http://www.iwanna.cn/archives/2010/07/31/4812/</link>
		<comments>http://www.iwanna.cn/archives/2010/07/31/4812/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 13:34:28 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[素材分享]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4812</guid>
		<description><![CDATA[您可曾在看报纸的时候想过，在互联网上它将会以怎样的设计来展现内容呢？或者，我又将会如何去编码这些呢？咳，为此，我们收集了报纸及杂志题材的10个免费的WordPress 主题，希望会对您的博客有所帮助。
这些主题看起来都是相当不错的，您完全可以根据自己的喜好来自定义它们。其中有一些您还需要下载他们的特定的插件才可以运行。最后，让我们知道您最喜好的主题吧，如果您发现或您的网站正在使用其它风格的报纸、杂志题材的WordPress主题，我们是乐意倾听这些的。
Chronicle


Hamasaki

*  * * * *
Magazeen

*  * * * *
Small Magazine Theme

*  * * * *
ZinePress

*  * * * *
Old News Theme

*  * * * *
Arras Theme

*  * * * *
Newspaper WordPress Theme

*  * * * *
The Stars

*  * * * *
The BlogTimes


© 我想网 Akon 所有 , [...]]]></description>
			<content:encoded><![CDATA[<p>您可曾在看报纸的时候想过，在互联网上它将会以怎样的设计来展现内容呢？或者，我又将会如何去编码这些呢？咳，为此，我们收集了<strong><a title="10个免费的报纸及杂志题材的WordPress主题" href="http://www.iwanna.cn/archives/2010/07/31/4812/">报纸及杂志题材的10个免费的WordPress 主题</a></strong>，希望会对您的博客有所帮助。</p>
<p>这些主题看起来都是相当不错的，您完全可以根据自己的喜好来自定义它们。其中有一些您还需要下载他们的特定的插件才可以运行。最后，让我们知道您最喜好的主题吧，如果您发现或您的网站正在使用其它风格的报纸、杂志题材的WordPress主题，我们是乐意倾听这些的。</p>
<h3>Chronicle</h3>
<p><a href="http://themes.weboy.org/chronicle/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/31/maz-wordpress-theme/119.jpg" alt="10个免费的报纸及杂志题材的WordPress主题 | iwanna.cn 我想网" width="674" height="303" /></a><br />
<span id="more-4812"></span></p>
<h3>Hamasaki</h3>
<p><a href="http://www.jauhari.net/themes/hamasaki#tb" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/31/maz-wordpress-theme/29.jpg" alt="10个免费的报纸及杂志题材的WordPress主题 | iwanna.cn 我想网" width="674" height="315" /></a></p>
<p>*  * * * *</p>
<h3>Magazeen</h3>
<p><a href="http://www.smashingmagazine.com/2009/02/23/magazeen-free-magazine-look-wordpress-theme/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/31/maz-wordpress-theme/37.jpg" alt="10个免费的报纸及杂志题材的WordPress主题 | iwanna.cn 我想网" width="674" height="241" /></a></p>
<p>*  * * * *</p>
<h3>Small Magazine <a href="http://www.iwanna.cn/tags/theme/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with theme">Theme</a></h3>
<p><a href="http://www.gabfire.com/small-magazine-wordpress-theme/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/31/maz-wordpress-theme/47.jpg" alt="10个免费的报纸及杂志题材的WordPress主题 | iwanna.cn 我想网" width="674" height="348" /></a></p>
<p>*  * * * *</p>
<h3>ZinePress</h3>
<p><a href="http://wellmedicated.com/themes/zinepress/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/31/maz-wordpress-theme/57.jpg" alt="10个免费的报纸及杂志题材的WordPress主题 | iwanna.cn 我想网" width="674" height="309" /></a></p>
<p>*  * * * *</p>
<h3>Old News <a href="http://www.iwanna.cn/tags/theme/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with theme">Theme</a></h3>
<p><a href="http://www.egracecreative.com/2009/07/01/old-news-wordpress-theme/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/31/maz-wordpress-theme/67.jpg" alt="10个免费的报纸及杂志题材的WordPress主题 | iwanna.cn 我想网" width="674" height="281" /></a></p>
<p>*  * * * *</p>
<h3>Arras <a href="http://www.iwanna.cn/tags/theme/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with theme">Theme</a></h3>
<p><a href="http://www.arrastheme.com/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/31/maz-wordpress-theme/77.jpg" alt="10个免费的报纸及杂志题材的WordPress主题 | iwanna.cn 我想网" width="674" height="284" /></a></p>
<p>*  * * * *</p>
<h3>Newspaper WordPress <a href="http://www.iwanna.cn/tags/theme/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with theme">Theme</a></h3>
<p><a href="http://www.alltemplate.org/wordpress/wordpress-free-theme/premium-newspaper-free-wordpress-theme/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/31/maz-wordpress-theme/87.jpg" alt="10个免费的报纸及杂志题材的WordPress主题 | iwanna.cn 我想网" width="674" height="287" /></a></p>
<p>*  * * * *</p>
<h3>The Stars</h3>
<p><a href="http://divageekdesigns.com/2009/01/29/the-stars-a-free-premium-wordpress-theme/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/31/maz-wordpress-theme/96.jpg" alt="10个免费的报纸及杂志题材的WordPress主题 | iwanna.cn 我想网" width="674" height="299" /></a></p>
<p>*  * * * *</p>
<h3>The BlogTimes</h3>
<p><a href="http://id-templates.blogspot.com/2009/02/blogtimes-newspaper-style-wordpress.html" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/31/maz-wordpress-theme/106.jpg" alt="10个免费的报纸及杂志题材的WordPress主题 | iwanna.cn 我想网" width="674" height="269" /></a></p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/07/31/4812/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/07/31/4812/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/07/31/4812/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/07/31/4812/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/07/31/4812/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/design/" title="Design" rel="tag nofollow">Design</a>, <a href="http://www.iwanna.cn/topics/ui/design-ui/" title="Design" rel="tag nofollow">Design</a>, <a href="http://www.iwanna.cn/tags/theme/" title="theme" rel="tag nofollow">theme</a>, <a href="http://www.iwanna.cn/topics/develope/php/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a>, <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a>, <a href="http://www.iwanna.cn/topics/material/" title="素材分享" rel="tag nofollow">素材分享</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/07/09/4453/" title="10个迷你且清爽的免费WordPress主题 (2010年07月9日)">10个迷你且清爽的免费WordPress主题</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/30/4271/" title="免费获得12款RichWP WordPress 收费主题 (2010年06月30日)">免费获得12款RichWP WordPress 收费主题</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/03/4338/" title="36个最新漂亮的WordPress免费主题下载 (2010年07月3日)">36个最新漂亮的WordPress免费主题下载</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/24/4708/" title="10个提供免费WordPress主题下载的网站 (2010年07月24日)">10个提供免费WordPress主题下载的网站</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/09/04/2211/" title="黄金分割在Web设计中的应用 (2009年09月4日)">黄金分割在Web设计中的应用</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/26/3367/" title="高雅的极简设计 (2010年05月26日)">高雅的极简设计</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/05/18/1096/" title="高品质的网页设计: 实例与技巧 (2009年05月18日)">高品质的网页设计: 实例与技巧</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/12/18/2432/" title="轻设计，让网站灵敏轻便的6个技巧 (2009年12月18日)">轻设计，让网站灵敏轻便的6个技巧</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/07/05/1923/" title="转换设计原图 PSD 为 HTML (2009年07月5日)">转换设计原图 PSD 为 HTML</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/22/784/" title="设计良好网页的4项原则 (2009年04月22日)">设计良好网页的4项原则</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/07/31/4812/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10个提供免费WordPress主题下载的网站</title>
		<link>http://www.iwanna.cn/archives/2010/07/24/4708/</link>
		<comments>http://www.iwanna.cn/archives/2010/07/24/4708/#comments</comments>
		<pubDate>Sat, 24 Jul 2010 09:21:55 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Translate]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Free]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[翻译]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4708</guid>
		<description><![CDATA[一款漂亮的主题会使得您的WordPress搭建的博客看起来更加专业且有吸引力。
您既可以自己创建一份主题，购买主题，或者是从诸如Thematic等网站来免费下载WordPress主题来修饰博客。
从下载免费WordPress博客主题而言，您可以从以下的10个提供免费且漂亮的WordPress主题下载的站点中查找，在下载安装前您最好是预览一下效果。
1. WordPress.org

作为WordPress的官方网站，WordPress.org提供了超过1000个的免费主题，您可以从您的WordPress 操控台中预览、下载。
访问 WordPress.org

2.  Freethemelayouts.com

在Freethemelayouts.com中有超过100多款WordPress主题，当鼠标移动至该类主题的时候您就可以预览主题显示效果。
访问  Freethemelayouts.com
3. Topwpthemes.com

Topwpthemes.com大约有400个免费的WordPress主题，您也可以安专栏、作者、小程序或其他一些分类来查找主题。
Go  to Topwpthemes.com
4. Freewpthemes.net

Freewpthemes.net 拥有超过270款的免费WordPress主题，您可以预览它们，确认宽度是否为固定大小的，在下载之前确认应用程序是否已经准备妥当等等。
访问 Freewpthemes.net
5.  Freewordpressthemes4u.com

在 Freewordpressthemes4u.com 站点中，拥有1000多款免费WordPress主题，供您预览及下载。
访问  Freewordpressthemes4u.com
6. WordPressthemesbase.com

WordPressthemesbase.com 站点中拥有解决900余款的免费WordPress主题，您可以通过主题分类(诸如：艺术品设计、商业性质的、摄像类型等等)，或者根据属性(如：专栏、宽度及插件等等)进行查找。
访问 WordPressthemesbase.com
7.  WordPresssupplies.com

您可以从WordPresssupplies.com站点中预览及下载超过3000款免费WordPress主题。
访问 WordPresssupplies.com
8.  Themes2wp.com

themes2wp.com中拥有600余款免费WordPress主题供您预览及下载。
访问 Themes2wp.com
9.  Blogohblog.com

Blogohblog.com 提供免费且包含预览方式的WordPress主题，有超过50款的免费WordPress主题供您下载。
访问  Blogohblog.com
10. Themelab.com

Themelab.com中有超过100款的免费WordPress主题供您预览、下载。
访问 Themelab.com
就上面的10个站点而言，WordPress.org是我所最喜欢的，主要是因为每当有该主题的最新版本的时候，都可以自动更新版本。那么您呢？哪个是您最喜欢的？如果您还有更好的站点选择，就请在最后留言告诉我们吧！

© 我想网 Akon 所有 , 2010. &#124;
永久链接 &#124;
没有评论 &#124;
提交到
Google Reader
鲜果
抓虾


	标签：Free, theme, Translate, Translate, Website, Website, Wordpress, Wordpress, 翻译

	您可能会感兴趣的其他文章
	
	36个最新漂亮的WordPress免费主题下载 
	10个迷你且清爽的免费WordPress主题 [...]]]></description>
			<content:encoded><![CDATA[<p>一款漂亮的主题会使得您的WordPress搭建的博客看起来更加专业且有吸引力。</p>
<p>您既可以自己创建一份主题，购买主题，或者是从诸如Thematic等网站来免费下载WordPress主题来修饰博客。</p>
<p>从下载免费WordPress博客主题而言，您可以从以下的<strong><a href="http://www.iwanna.cn/archives/2010/07/24/4708/" title="10个提供免费WordPress主题下载的网站">10个提供免费且漂亮的WordPress主题下载</a></strong>的站点中查找，在下载安装前您最好是预览一下效果。</p>
<h2>1. WordPress.org</h2>
<p><a href="http://www.iwanna.cn/" alt="我想网" target="_blank"><img title="wordpress-org-themes" src="http://images.uheed.com/iwanna/2010/07/24/download-free-wordpress-theme-sites/wordpress-org-themes.jpg" alt="Free  WordPress Themes" width="530" height="316" /></a></p>
<p>作为WordPress的官方网站，WordPress.org提供了超过1000个的免费主题，您可以从您的WordPress 操控台中预览、下载。</p>
<p><a href="http://wordpress.org/extend/themes/" target="_blank">访问 WordPress.org</a><br />
<span id="more-4708"></span></p>
<h2>2.  Freethemelayouts.com</h2>
<p><a href="http://www.iwanna.cn/" alt="我想网" target="_blank"><img title="Freethemelayouts" src="http://images.uheed.com/iwanna/2010/07/24/download-free-wordpress-theme-sites/Freethemelayouts.jpg" alt="Free  WordPress Themes" width="530" height="329" /></a></p>
<p>在Freethemelayouts.com中有超过100多款WordPress主题，当鼠标移动至该类主题的时候您就可以预览主题显示效果。</p>
<p><a href="http://www.freethemelayouts.com/" target="_blank">访问  Freethemelayouts.com</a></p>
<h2>3. Topwpthemes.com</h2>
<p><a href="http://www.iwanna.cn/" alt="我想网" target="_blank"><img title="top-wordpress-themes" src="http://images.uheed.com/iwanna/2010/07/24/download-free-wordpress-theme-sites/top-wordpress-themes.jpg" alt="Download  Free WordPress Themes" width="530" height="308" /></a></p>
<p>Topwpthemes.com大约有400个免费的WordPress主题，您也可以安专栏、作者、小程序或其他一些分类来查找主题。</p>
<p><a href="http://topwpthemes.com/" target="_blank">Go  to Topwpthemes.com</a></p>
<h2>4. Freewpthemes.net</h2>
<p><a href="http://www.iwanna.cn/" alt="我想网" target="_blank"><img title="freewpthemes" src="http://images.uheed.com/iwanna/2010/07/24/download-free-wordpress-theme-sites/freewpthemes.jpg" alt="Free WordPress  Themes" width="530" height="311" /></a></p>
<p>Freewpthemes.net 拥有超过270款的免费WordPress主题，您可以预览它们，确认宽度是否为固定大小的，在下载之前确认应用程序是否已经准备妥当等等。</p>
<p><a href="http://www.freewpthemes.net/" target="_blank">访问 Freewpthemes.net</a></p>
<h2>5.  Freewordpressthemes4u.com</h2>
<p><a href="http://www.iwanna.cn/" alt="我想网" target="_blank"><img title="freewordpressthemes4u" src="http://images.uheed.com/iwanna/2010/07/24/download-free-wordpress-theme-sites/freewordpressthemes4u.jpg" alt="Free  WordPress Themes" width="530" height="325" /></a></p>
<p>在 Freewordpressthemes4u.com 站点中，拥有1000多款免费WordPress主题，供您预览及下载。</p>
<p><a href="http://www.freewordpressthemes4u.com/" target="_blank">访问  Freewordpressthemes4u.com</a></p>
<h2>6. WordPressthemesbase.com</h2>
<p><a href="http://www.iwanna.cn/" alt="我想网" target="_blank"><img title="wordpressthemesbase" src="http://images.uheed.com/iwanna/2010/07/24/download-free-wordpress-theme-sites/wordpressthemesbase.jpg" alt="Free  WordPress Themes" width="530" height="267" /></a></p>
<p>WordPressthemesbase.com 站点中拥有解决900余款的免费WordPress主题，您可以通过主题分类(诸如：艺术品设计、商业性质的、摄像类型等等)，或者根据属性(如：专栏、宽度及插件等等)进行查找。</p>
<p><a href="http://wordpressthemesbase.com/" target="_blank">访问 WordPressthemesbase.com</a></p>
<h2>7.  WordPresssupplies.com</h2>
<p><a href="http://www.iwanna.cn/" alt="我想网" target="_blank"><img title="wordpresssupplies" src="http://images.uheed.com/iwanna/2010/07/24/download-free-wordpress-theme-sites/wordpresssupplies.jpg" alt="Free  WordPress Themes" width="530" height="291" /></a></p>
<p>您可以从WordPresssupplies.com站点中预览及下载超过3000款免费WordPress主题。</p>
<p><a href="http://wordpresssupplies.com/" target="_blank">访问 WordPresssupplies.com</a></p>
<h2>8.  Themes2wp.com</h2>
<p><a href="http://www.iwanna.cn/" alt="我想网" target="_blank"><img title="Themes2wp" src="http://images.uheed.com/iwanna/2010/07/24/download-free-wordpress-theme-sites/Themes2wp.jpg" alt="Free WordPress  Themes" width="530" height="197" /></a></p>
<p>themes2wp.com中拥有600余款免费WordPress主题供您预览及下载。</p>
<p><a href="http://www.themes2wp.com/" target="_blank">访问 Themes2wp.com</a></p>
<h2>9.  Blogohblog.com</h2>
<p><a href="http://www.iwanna.cn/" alt="我想网" target="_blank"><img title="blogohblog" src="http://images.uheed.com/iwanna/2010/07/24/download-free-wordpress-theme-sites/blogohblog.jpg" alt="Free WordPress  Themes" width="530" height="287" /></a></p>
<p>Blogohblog.com 提供免费且包含预览方式的WordPress主题，有超过50款的免费WordPress主题供您下载。</p>
<p><a href="http://www.blogohblog.com/category/wordpress-themes/" target="_blank">访问  Blogohblog.com</a></p>
<h2>10. Themelab.com</h2>
<p><a href="http://www.iwanna.cn/" alt="我想网" target="_blank"><img title="themelab" src="http://images.uheed.com/iwanna/2010/07/24/download-free-wordpress-theme-sites/themelab.jpg" alt="Free WordPress  Themes" width="530" height="329" /></a></p>
<p>Themelab.com中有超过100款的免费WordPress主题供您预览、下载。</p>
<p><a href="http://www.themelab.com/free-wordpress-themes/" target="_blank">访问 Themelab.com</a></p>
<p>就上面的10个站点而言，WordPress.org是我所最喜欢的，主要是因为每当有该主题的最新版本的时候，都可以自动更新版本。那么您呢？哪个是您最喜欢的？如果您还有更好的站点选择，就请在最后留言告诉我们吧！</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/07/24/4708/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/07/24/4708/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/07/24/4708/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/07/24/4708/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/07/24/4708/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/free/" title="Free" rel="tag nofollow">Free</a>, <a href="http://www.iwanna.cn/tags/theme/" title="theme" rel="tag nofollow">theme</a>, <a href="http://www.iwanna.cn/tags/translate/" title="Translate" rel="tag nofollow">Translate</a>, <a href="http://www.iwanna.cn/topics/iwanna/translate-iwanna/" title="Translate" rel="tag nofollow">Translate</a>, <a href="http://www.iwanna.cn/topics/surf/website/" title="Website" rel="tag nofollow">Website</a>, <a href="http://www.iwanna.cn/tags/website/" title="Website" rel="tag nofollow">Website</a>, <a href="http://www.iwanna.cn/topics/develope/php/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a>, <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a>, <a href="http://www.iwanna.cn/tags/translates/" title="翻译" rel="tag nofollow">翻译</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/07/03/4338/" title="36个最新漂亮的WordPress免费主题下载 (2010年07月3日)">36个最新漂亮的WordPress免费主题下载</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/09/4453/" title="10个迷你且清爽的免费WordPress主题 (2010年07月9日)">10个迷你且清爽的免费WordPress主题</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/22/3294/" title="深色调社交图标：免费且高质量的社交媒体图标集 (2010年05月22日)">深色调社交图标：免费且高质量的社交媒体图标集</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/16/4015/" title="9个可用性及Ux陷阱：了解如何避免它们 (2010年06月16日)">9个可用性及Ux陷阱：了解如何避免它们</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/05/11/1049/" title="80个应用大背景图片的网站 (2009年05月11日)">80个应用大背景图片的网站</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/03/05/2533/" title="5款免费的制作移动版本的网站的工具 (2010年03月5日)">5款免费的制作移动版本的网站的工具</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/06/4389/" title="55个简约型的网站设计实例 (2010年07月6日)">55个简约型的网站设计实例</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/02/10/2502/" title="50个激动人心的iPhone应用网站 (2010年02月10日)">50个激动人心的iPhone应用网站</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/08/14/2121/" title="50个最新的漂亮的博客网站设计 (2009年08月14日)">50个最新的漂亮的博客网站设计</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/03/20/2594/" title="50 个极可能激发您灵感的黄色Web设计 (2010年03月20日)">50 个极可能激发您灵感的黄色Web设计</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/07/24/4708/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook发布又一PHP改进项目 XHP</title>
		<link>http://www.iwanna.cn/archives/2010/07/17/4594/</link>
		<comments>http://www.iwanna.cn/archives/2010/07/17/4594/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 05:12:20 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4594</guid>
		<description><![CDATA[就在Google高调发布业界普遍认为针对Facebook的Buzz的同时，Facebook则低调发布了XHP项目。这是一个多月以来，继 HipHop之后，Facebook推出的又一重要PHP改进项目。看来，在社会化网络市场地位稳固之后，Facebook也开始大力回馈技术社区，在口碑和攒人品方面与Google展开竞争了。
根据Github 上项目的文档维基，XHP是一个PHP扩展，通过它，开发人员可以直接在PHP代码中内嵌XML文档片段，作为合法的PHP表达式。这样，PHP 就成为一个更为严格的模板引擎，大大简化了实现可重用组件的工作。

比如这样的简单代码示例：
&#60;?php
rquire "xphsrc/php-lib/init.php";
$href = 'http://www.facebook.com';
echo &#60;a href={$href}&#62;Facebook&#60;/a&#62;

注意第三行代码中的语法，其中echo后的不是字符串。
项目负责人Facebook工程师Marcel  Laverdet则表示，XHP不仅使前端代码更容易理解，还有助于防止跨站脚本攻击。事实上，Facebook  Lite网站（快速简化版本的Facebook）就是完全用XHP写成的。
和上次HipHop发布一样，PHP之父Rasmus Lerdorf也很快做出回应（英文原文 链接），他说：
XHP其实就是支持内嵌XML，这在VB中称为XML元素文本。 它增加了一个额外的分析步骤，将内嵌的XML元素映射为PHP类。类的语法有些奇怪。至少对我而言，其中主要有意思的地方，是PHP现在理解要输出的 XML了，就可以以上下文敏感的方式进行过滤。
Lerdorf也指出，XHP存在明显的性能问题，它的XML运行时验证显然会增加开销。为此，Facebook不得不使用 APC[Alternative PHP Cache]再加上HipHop。
对此，Marcel Laverdet回复：
性能的确是XHP最引人关注的问题。确实，XHP比原始的字符串拼接要慢2到3倍，但是这对大多数程序都不是问题。另外， 虽然APC肯定是必需的（大多数网站都是如此），HipHop则不然。其实Lite网站只是到最近才开始切换到HipHop，之前也表现很不错。在实际应 用中，XHP对性能影响并不是很大。在简洁和性能之间的权衡上，XHP做得不错。
此外，Wikispaces的创始人James Byers也写到：
对我来说，XHP比HipHop有意思得多。它将完全改变模板还是只用PHP的争论。对此我很高兴。PHP应该继续这样改 进。
Tipjoy的联合创始人，现在也在Facebook任工程师的Ivan Kirigin也对XHP赞赏有加：
XHP是我在Facebook唯一使用的PHP工具，比其他语言类似的东西都好。记号完美代表了对象，不用折腾面向对象编 程那些烂东西了，这可是非常罕见的宝贝。

© 我想网 Akon 所有 , 2010. &#124;
永久链接 &#124;
没有评论 &#124;
提交到
Google Reader
鲜果
抓虾


	标签：Facebook, Facebook, PHP, PHP

	您可能会感兴趣的其他文章
	
	设计模式之单例模式 
	论述PHP开发框架: What, When, Why and Which? 
	腾讯PHP程序员面试题目 
	美企业家向 Facebook提5点建议：增加导出功能 
	简易Wordpress模板代码帮助手册中文版 
	社会网络的5个神话 
	用PHP数组对百万数据进行排重 
	用 PHP 读取和编写 XML [...]]]></description>
			<content:encoded><![CDATA[<p>就在Google高调发布业界普遍认为针对<a href="http://www.iwanna.cn/tags/facebook/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Facebook">Facebook</a>的Buzz的同时，<a href="http://www.iwanna.cn/tags/facebook/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Facebook">Facebook</a>则低调发布了XHP项目。这是一个多月以来，继 HipHop之后，<a href="http://www.iwanna.cn/tags/facebook/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Facebook">Facebook</a>推出的又一重要<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>改进项目。看来，在社会化网络市场地位稳固之后，<a href="http://www.iwanna.cn/tags/facebook/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Facebook">Facebook</a>也开始大力回馈技术社区，在口碑和攒人品方面与Google展开竞争了。</p>
<p>根据<a href="http://wiki.github.com/facebook/xhp/" target="_blank">Github 上项目的文档维基</a>，XHP是一个<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>扩展，通过它，开发人员可以直接在<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>代码中内嵌XML文档片段，作为合法的<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>表达式。这样，<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a> 就成为一个更为严格的模板引擎，大大简化了实现可重用组件的工作。<br />
<span id="more-4594"></span><br />
比如这样的简单代码示例：</p>
<pre>&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>
rquire "xphsrc/<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>-lib/init.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>";
$href = 'http://www.<a href="http://www.iwanna.cn/tags/facebook/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Facebook">facebook</a>.com';
echo &lt;a href={$href}&gt;<a href="http://www.iwanna.cn/tags/facebook/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Facebook">Facebook</a>&lt;/a&gt;
</pre>
<p>注意第三行代码中的语法，其中echo后的不是字符串。</p>
<p>项目负责人<a href="http://www.iwanna.cn/tags/facebook/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Facebook">Facebook</a>工程师Marcel  Laverdet则表示，XHP不仅使前端代码更容易理解，还有助于防止跨站脚本攻击。事实上，<a href="http://www.iwanna.cn/tags/facebook/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Facebook">Facebook</a>  Lite网站（快速简化版本的<a href="http://www.iwanna.cn/tags/facebook/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Facebook">Facebook</a>）就是完全用XHP写成的。</p>
<p>和上次HipHop发布一样，<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>之父Rasmus Lerdorf也很快做出回应（<a href="http://toys.lerdorf.com/archives/54-A-quick-look-at-XHP.html" target="_blank">英文原文 链接</a>），他说：</p>
<blockquote><p>XHP其实就是支持内嵌XML，这在VB中称为<a href="http://msdn.microsoft.com/zh-cn/library/bb384832.aspx" target="_blank">XML元素文本</a>。 它增加了一个额外的分析步骤，将内嵌的XML元素映射为<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>类。类的语法有些奇怪。至少对我而言，其中主要有意思的地方，是<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>现在理解要输出的 XML了，就可以以上下文敏感的方式进行过滤。</p></blockquote>
<p>Lerdorf也指出，XHP存在明显的性能问题，它的XML运行时验证显然会增加开销。为此，<a href="http://www.iwanna.cn/tags/facebook/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Facebook">Facebook</a>不得不使用 APC[Alternative <a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a> Cache]再加上HipHop。</p>
<p>对此，Marcel Laverdet回复：</p>
<blockquote><p>性能的确是XHP最引人关注的问题。确实，XHP比原始的字符串拼接要慢2到3倍，但是这对大多数程序都不是问题。另外， 虽然APC肯定是必需的（大多数网站都是如此），HipHop则不然。其实Lite网站只是到最近才开始切换到HipHop，之前也表现很不错。在实际应 用中，XHP对性能影响并不是很大。在简洁和性能之间的权衡上，XHP做得不错。</p></blockquote>
<p>此外，Wikispaces的创始人James Byers也写到：</p>
<blockquote><p>对我来说，XHP比HipHop有意思得多。它将完全改变模板还是只用<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>的争论。对此我很高兴。<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>应该继续这样改 进。</p></blockquote>
<p>Tipjoy的联合创始人，现在也在<a href="http://www.iwanna.cn/tags/facebook/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Facebook">Facebook</a>任工程师的Ivan Kirigin也对XHP赞赏有加：</p>
<blockquote><p>XHP是我在<a href="http://www.iwanna.cn/tags/facebook/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Facebook">Facebook</a>唯一使用的<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>工具，比其他语言类似的东西都好。记号完美代表了对象，不用折腾面向对象编 程那些烂东西了，这可是非常罕见的宝贝。</p></blockquote>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/07/17/4594/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/07/17/4594/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/07/17/4594/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/07/17/4594/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/07/17/4594/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/topics/surf/facebook/" title="Facebook" rel="tag nofollow">Facebook</a>, <a href="http://www.iwanna.cn/tags/facebook/" title="Facebook" rel="tag nofollow">Facebook</a>, <a href="http://www.iwanna.cn/topics/develope/php/" title="PHP" rel="tag nofollow">PHP</a>, <a href="http://www.iwanna.cn/tags/php/" title="PHP" rel="tag nofollow">PHP</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2009/04/02/149/" title="设计模式之单例模式 (2009年04月2日)">设计模式之单例模式</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/07/31/2088/" title="论述PHP开发框架: What, When, Why and Which? (2009年07月31日)">论述PHP开发框架: What, When, Why and Which?</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/08/3767/" title="腾讯PHP程序员面试题目 (2010年06月8日)">腾讯PHP程序员面试题目</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/06/3722/" title="美企业家向 Facebook提5点建议：增加导出功能 (2010年06月6日)">美企业家向 Facebook提5点建议：增加导出功能</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/03/171/" title="简易Wordpress模板代码帮助手册中文版 (2009年04月3日)">简易Wordpress模板代码帮助手册中文版</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/05/1735/" title="社会网络的5个神话 (2009年06月5日)">社会网络的5个神话</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/08/3769/" title="用PHP数组对百万数据进行排重 (2010年06月8日)">用PHP数组对百万数据进行排重</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/07/05/1933/" title="用 PHP 读取和编写 XML DOM (2009年07月5日)">用 PHP 读取和编写 XML DOM</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/20/4102/" title="深入理解PHP之匿名函数 (2010年06月20日)">深入理解PHP之匿名函数</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/16/409/" title="海盗湾添加在Facebook上共享种子的新功能 (2009年04月16日)">海盗湾添加在Facebook上共享种子的新功能</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/07/17/4594/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用PHP进行HTTP重定向</title>
		<link>http://www.iwanna.cn/archives/2010/07/17/4590/</link>
		<comments>http://www.iwanna.cn/archives/2010/07/17/4590/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 04:59:31 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[HTTP]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4590</guid>
		<description><![CDATA[什么是HTTP重定向？
当你访问www.yegle.net时，地址栏的地址会自动变成yegle.net。当你访问ye.gl的时候，地址栏的地址会变成 yegle.net。这就是HTTP重定向
一个HTTP请求，返回的HTTP Response Header里，第一行是HTTP的状态码。正常情况下，HTTP请求返回的状态码是200  OK。
正常的HTTP请求，返回200 OK：
&#60; HTTP/1.1 200 OK
&#60; Date: Fri, 16 Jul 2010 11:21:10 GMT
&#60; Server: Apache
&#60; X-Powered-By: PHP/5.2.4-2ubuntu5.10
&#60; Set-Cookie: PHPSESSID=7f86ed2e5a4750275e98971773ac88ab; path=/
&#60; Expires: Thu, 19 Nov 1981 08:52:00 GMT
&#60; Cache-Control: no-store, no-cache, must-revalidate, post-check=0,  pre-check=0
&#60; Pragma: no-cache
&#60; Set-Cookie:  wassup=ZjVjMWExMjZjNmIxNzU1NDBhZjU0MmM5MzhmYjllZDQ6OjEyNzkyODE5NzE6Ojo6MjAwMTozODg6ZjAwMDo6ZTZmOjoyMDAxOjM4ODpmMDAwOjplNmY%253D;  expires=Fri, 16-Jul-2010 12:11:11 GMT; path=/
&#60; X-Pingback: http://yegle.net/xmlrpc.php
&#60; Vary: Accept-Encoding
&#60; Transfer-Encoding: chunked
&#60; [...]]]></description>
			<content:encoded><![CDATA[<p>什么是HTTP重定向？</p>
<p>当你访问www.yegle.net时，地址栏的地址会自动变成yegle.net。当你访问ye.gl的时候，地址栏的地址会变成 yegle.net。这就是HTTP重定向</p>
<p>一个HTTP请求，返回的HTTP Response Header里，第一行是HTTP的状态码。正常情况下，HTTP请求返回的状态码是200  OK。<br />
正常的HTTP请求，返回200 OK：</p>
<blockquote><p>&lt; HTTP/1.1 200 OK<br />
&lt; Date: Fri, 16 Jul 2010 11:21:10 GMT<br />
&lt; Server: Apache<br />
&lt; X-Powered-By: <a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>/5.2.4-2ubuntu5.10<br />
&lt; Set-Cookie: PHPSESSID=7f86ed2e5a4750275e98971773ac88ab; path=/<br />
&lt; Expires: Thu, 19 Nov 1981 08:52:00 GMT<br />
&lt; Cache-Control: no-store, no-cache, must-revalidate, post-check=0,  pre-check=0<br />
&lt; Pragma: no-cache<br />
&lt; Set-Cookie:  wassup=ZjVjMWExMjZjNmIxNzU1NDBhZjU0MmM5MzhmYjllZDQ6OjEyNzkyODE5NzE6Ojo6MjAwMTozODg6ZjAwMDo6ZTZmOjoyMDAxOjM4ODpmMDAwOjplNmY%253D;  expires=Fri, 16-Jul-2010 12:11:11 GMT; path=/<br />
&lt; X-Pingback: http://yegle.net/xmlrpc.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a><br />
&lt; Vary: Accept-Encoding<br />
&lt; Transfer-Encoding: chunked<br />
&lt; Content-Type: text/html; charset=UTF-8<br />
&lt;</p></blockquote>
<p><span id="more-4590"></span><br />
其他的比较知名的还有例如：</p>
<ul>
<li>404 Not Found</li>
<li>301 Moved Permanently</li>
<li>302 Found</li>
<li>500 Internal Server Error</li>
</ul>
<p>HTTP重定向就是通过301和302两种状态码来实现的。</p>
<p>302是临时重定向的意思。表示被访问页面因为各种需要被临时跳转到其他页面。具体的例子是访问  http://yegle.net/recursion.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a></p>
<blockquote><p>&lt; HTTP/1.1 302 Found<br />
&lt; Date: Fri, 16 Jul 2010 11:26:48 GMT<br />
&lt; Server: Apache<br />
&lt; X-Powered-By: <a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>/5.2.4-2ubuntu5.10<br />
&lt; Location: http://yegle.net/recursion.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a><br />
&lt; Cache-Control: max-age=600<br />
&lt; Expires: Fri, 16 Jul 2010 11:36:48 GMT<br />
&lt; Vary: Accept-Encoding<br />
&lt; Content-Length: 0<br />
&lt; Content-Type: text/html<br />
&lt;</p></blockquote>
<p>浏览器在收到302 Found的状态码之后会在返回的HTTP Response  Header中查找Location字段，然后访问对应地址。在这个例子中，浏览器就会访问  http://yegle.net/recursion.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> (嗯这是一个递归，你懂的…)</p>
<p>301是永久重定向。这样的例子很好找。例如 http://google.com</p>
<blockquote><p>&lt; HTTP/1.1 301 Moved Permanently<br />
&lt; Location: http://www.google.com/<br />
&lt; Content-Type: text/html; charset=UTF-8<br />
&lt; Date: Fri, 16 Jul 2010 11:29:07 GMT<br />
&lt; Expires: Sun, 15 Aug 2010 11:29:07 GMT<br />
&lt; Cache-Control: public, max-age=2592000<br />
&lt; Server: gws<br />
&lt; Content-Length: 219<br />
&lt; X-XSS-Protection: 1; mode=block<br />
&lt;</p></blockquote>
<p>同样，浏览器在发现301的状态码之后会查找Location字段，然后访问那个地址。</p>
<p>Location字段的格式很随意，既可以是绝对地址，也可以是相对地址，还可以是相对根目录的地址。以下Location字段都是合法的：</p>
<blockquote><p>Location: http://yegle.net/<br />
Location: /test/index.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a><br />
Location: index.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a><br />
Location: ../index.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a></p></blockquote>
<p>301重定向和302重定向在SEO以及缓存上是有非常大区别的。</p>
<p>对于SEO也就是搜索引擎优化，一个页面302重定向到另一个页面，新页面的PageRank不会受原页面影响。而一个页面301重定向到另一个页 面，原页面的PageRank会被传递到新页面。所以对于一个网站进行域名转换，最好的方法就是使用301重定向，在经过一段时间之后可以不损失PR地将 全站转移到新域名下。</p>
<p>对于HTTP代理服务器例如squid来说，如果一个页面是302重定向到新页面并且没有指定Expire  HTTP头，squid将不缓存这个信息，也就是说每次用户通过代理请求时都会重新获取一遍。而对于301重定向，squid可以将结果缓存以便快速响应 下一个请求相同页面的用户。</p>
<p><a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>里的302重定向非常简单，只要在返回的HTTP Response  Header里添加Location字段，<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>将自动返回302状态码。例如：</p>
<pre>&lt; ?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>
header("Location: http://yegle.net/recursion.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>");
?&gt;</pre>
<p>这段代码将自动重定向到http://yegle.net/recursion.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a></p>
<p>而301重定向则稍微有点复杂，需要直接将301状态码用header函数返回给用户。例如：</p>
<pre>&lt; ?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>
    header( "HTTP/1.1 301 Moved Permanently" );
    header( "Location: http://yegle.net/" );
?&gt;</pre>
<p>注意的是，跳转不是在收到response  header的时候马上进行，也就是说页面的剩余内容会被下载来之后浏览器才会跳转。新手常犯的一个错误是，在逻辑判断时对符合条件的情况进行 header跳转之后，忘了在之后加上exit()，导致错误。例如，用user_login()判断用户是否进行了登录，如果未登录则跳转到登录页面。 代码如下：</p>
<pre>if(!user_login()){
    header("Location:login.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>");
}
//display contents for login users.</pre>
<p>这里，容易以为header之后这段代码就结束了，没有在header之后使用exit()。后面的代码继续被执行，导致未登录用户看到了已登录用 户才能看到的内容。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/07/17/4590/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/07/17/4590/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/07/17/4590/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/07/17/4590/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/07/17/4590/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/http/" title="HTTP" rel="tag nofollow">HTTP</a>, <a href="http://www.iwanna.cn/topics/develope/php/" title="PHP" rel="tag nofollow">PHP</a>, <a href="http://www.iwanna.cn/tags/php/" title="PHP" rel="tag nofollow">PHP</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2009/04/02/149/" title="设计模式之单例模式 (2009年04月2日)">设计模式之单例模式</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/07/31/2088/" title="论述PHP开发框架: What, When, Why and Which? (2009年07月31日)">论述PHP开发框架: What, When, Why and Which?</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/08/3767/" title="腾讯PHP程序员面试题目 (2010年06月8日)">腾讯PHP程序员面试题目</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/03/171/" title="简易Wordpress模板代码帮助手册中文版 (2009年04月3日)">简易Wordpress模板代码帮助手册中文版</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/08/3769/" title="用PHP数组对百万数据进行排重 (2010年06月8日)">用PHP数组对百万数据进行排重</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/07/05/1933/" title="用 PHP 读取和编写 XML DOM (2009年07月5日)">用 PHP 读取和编写 XML DOM</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/20/4102/" title="深入理解PHP之匿名函数 (2010年06月20日)">深入理解PHP之匿名函数</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/08/20/2171/" title="最快的 PHP 模板引擎 Blitz Templates (2009年08月20日)">最快的 PHP 模板引擎 Blitz Templates</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/08/24/2193/" title="开发者不可不知的PHP框架深度解析 (2009年08月24日)">开发者不可不知的PHP框架深度解析</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/26/3396/" title="实用PHP技巧：万能Cache (2010年05月26日)">实用PHP技巧：万能Cache</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/07/17/4590/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>15个实用的PHP正则表达式</title>
		<link>http://www.iwanna.cn/archives/2010/07/14/4566/</link>
		<comments>http://www.iwanna.cn/archives/2010/07/14/4566/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 13:38:30 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[RegEx]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4566</guid>
		<description><![CDATA[对于开发人员来说，正则表达式是一个非常有用的功能。它提供了 查找，匹配，替换  句子，单词，或者其他格式的字符串。在这篇文章里，我已经编写了15个贼有用的正则表达式，WEB开发人员都应该将它收藏到自己的工具包。
开始使用正则表达式
对初学者来说，正则看起来很难学习和使用。事实上他们并非你想想的那么难，在我们深入掌握正则之前，先迅速看看这些入门基础：

正则表达式语法
正则表达式     将会匹配
foo ——————字符串“foo”
^foo ——————以“foo”开头的字符串
foo$ ——————以“foo”结尾的字符串
^foo$ ——————“foo”开头和结尾，（只能是他自己 ）
[abc]—————— a 或者b 或者c
[a-z] —————— a到z之间任意字母
[^A-Z]——————除了 A-Z这些之外的字符
(gif&#124;jpg)——————“gif”或者 “jpeg”
[a-z]+—————— 一个或者多个 a到z之间任意字母
[0-9.-]—————— 0-9之间任意数字，或者 点 或者 横线
^[a-zA-Z0-9_]{1,}$—————— 至少一个字母数字下划线
([wx])([yz])—————— wy或wz或xy或xz
[^A-Za-z0-9]—————— 字符数字之外的字符
([A-Z]{3}&#124;[0-9]{4})—————— 三个大写字母或者4个数字
php 正则表达式的方法
方法描述：
preg_match() 该函数preg_match按照模式去匹配字符串，如果符合则返回TRUE，否则返回FALSE
preg_match_all() 该函数 preg_match_all() 在字符串中匹配出全部符合模式的字符串.
preg_replace()  该函数与ereg_replace()类似，不同在于它利用匹配的模式去替换输入的参数
preg_split() 该函数与split()类似 不同在于它将与正则表达式匹配的字符当做分割的模式
preg_grep() 该函数preg_grep() 匹配数组中全部元素，返回符合正则表达式的元素组成的数组
preg_quote() 转义正则表达式字符
验证域名
检验一个字符串是否是个有效域名.
$url = &#8220;http://komunitasweb.com/&#8221;;
if  (preg_match(&#8216;/^(http&#124;https&#124;ftp)://([A-Z0-9][A-Z0-9_-]*(?:.[A-Z0-9][A-Z0-9_-]*)+):?(d+)?/?/i&#8217;,  $url)) {
echo &#8220;Your url is ok.&#8221;;
} else {
echo &#8220;Wrong url.&#8221;;
}
从一个字符串中 突出某个单词
这是一个非常有用的在一个字符串中匹配出某个单词 并且突出它，非常有效的搜索结果
$text [...]]]></description>
			<content:encoded><![CDATA[<p>对于开发人员来说，正则表达式是一个非常有用的功能。它提供了 查找，匹配，替换  句子，单词，或者其他格式的字符串。在这篇文章里，我已经编写了15个贼有用的正则表达式，WEB开发人员都应该将它收藏到自己的工具包。</p>
<p>开始使用正则表达式</p>
<p>对初学者来说，正则看起来很难学习和使用。事实上他们并非你想想的那么难，在我们深入掌握正则之前，先迅速看看这些入门基础：<br />
<span id="more-4566"></span><br />
正则表达式语法<br />
正则表达式     将会匹配<br />
foo ——————字符串“foo”<br />
^foo ——————以“foo”开头的字符串<br />
foo$ ——————以“foo”结尾的字符串<br />
^foo$ ——————“foo”开头和结尾，（只能是他自己 ）<br />
[abc]—————— a 或者b 或者c<br />
[a-z] —————— a到z之间任意字母<br />
[^A-Z]——————除了 A-Z这些之外的字符<br />
(gif|jpg)——————“gif”或者 “jpeg”<br />
[a-z]+—————— 一个或者多个 a到z之间任意字母<br />
[0-9.-]—————— 0-9之间任意数字，或者 点 或者 横线<br />
^[a-zA-Z0-9_]{1,}$—————— 至少一个字母数字下划线<br />
([wx])([yz])—————— wy或wz或xy或xz<br />
[^A-Za-z0-9]—————— 字符数字之外的字符<br />
([A-Z]{3}|[0-9]{4})—————— 三个大写字母或者4个数字</p>
<p><a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> 正则表达式的方法<br />
方法描述：<br />
preg_match() 该函数preg_match按照模式去匹配字符串，如果符合则返回TRUE，否则返回FALSE<br />
preg_match_all() 该函数 preg_match_all() 在字符串中匹配出全部符合模式的字符串.<br />
preg_replace()  该函数与ereg_replace()类似，不同在于它利用匹配的模式去替换输入的参数<br />
preg_split() 该函数与split()类似 不同在于它将与正则表达式匹配的字符当做分割的模式<br />
preg_grep() 该函数preg_grep() 匹配数组中全部元素，返回符合正则表达式的元素组成的数组<br />
preg_quote() 转义正则表达式字符</p>
<p>验证域名<br />
检验一个字符串是否是个有效域名.</p>
<p>$url = &#8220;http://komunitasweb.com/&#8221;;<br />
if  (preg_match(&#8216;/^(http|https|ftp)://([A-Z0-9][A-Z0-9_-]*(?:.[A-Z0-9][A-Z0-9_-]*)+):?(d+)?/?/i&#8217;,  $url)) {<br />
echo &#8220;Your url is ok.&#8221;;<br />
} else {<br />
echo &#8220;Wrong url.&#8221;;<br />
}</p>
<p>从一个字符串中 突出某个单词<br />
这是一个非常有用的在一个字符串中匹配出某个单词 并且突出它，非常有效的搜索结果</p>
<p>$text = &#8220;Sample sentence from KomunitasWeb, <a href="http://www.iwanna.cn/tags/regex/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with RegEx">regex</a> has become popular in  web programming. Now we learn <a href="http://www.iwanna.cn/tags/regex/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with RegEx">regex</a>. According to wikipedia, Regular  expressions (abbreviated as <a href="http://www.iwanna.cn/tags/regex/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with RegEx">regex</a> or</p>
<p>regexp, with plural forms regexes, regexps, or regexen) are written in a  formal language that can be interpreted by a regular expression  processor&#8221;;<br />
$text = preg_replace(&#8220;/b(<a href="http://www.iwanna.cn/tags/regex/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with RegEx">regex</a>)b/i&#8221;, &#8216;&lt;span  style=&#8221;background:#5fc9f6&#8243;&gt;1&lt;/span&gt;&#8217;, $text);<br />
echo $text;</p>
<p>突出查询结果在你的 WordPress 博客里<br />
就像刚才我说的，上面的那段代码可以很方便的搜索出结果，而这里是一个更好的方式去执行搜索在某个WordPress的博客上<br />
打开你的文件 search.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> ，然后找到 方法 the_title() 然后用下面代码替换掉它<br />
echo $title;Now, just before the modified line, add this code:</p>
<p>&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a><br />
$title     = get_the_title();<br />
$keys= explode(&#8221; &#8220;,$s);<br />
$title     = preg_replace(&#8216;/(&#8216;.implode(&#8216;|&#8217;, $keys) .&#8217;)/iu&#8217;,<br />
&#8216;&lt;strong&gt;\0&lt;/strong&gt;&#8217;,<br />
$title);<br />
?&gt;Save the search.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> file and open style.css. Append the following  line to it:</p>
<p>strong.search-excerpt { background: yellow; }</p>
<p>从HTML文档中获得全部图片<br />
如果你曾经希望去获得某个网页上的全部图片，这段代码就是你需要的，你可以轻松的建立一个图片下载机器人</p>
<p>$images = array();<br />
preg_match_all(&#8216;/(img|src)=(&#8220;|&#8217;)[^"'&gt;]+/i&#8217;, $data, $media);<br />
unset($data);<br />
$data=preg_replace(&#8216;/(img|src)(&#8220;|&#8217;|=&#8221;|=&#8217;)(.*)/i&#8217;,&#8221;$3&#8243;,$media[0]);<br />
foreach($data as $url)<br />
{<br />
$info = pathinfo($url);<br />
if (isset($info['extension']))<br />
{<br />
if (($info['extension'] == &#8216;jpg&#8217;) ||<br />
($info['extension'] == &#8216;jpeg&#8217;) ||<br />
($info['extension'] == &#8216;gif&#8217;) ||<br />
($info['extension'] == &#8216;png&#8217;))<br />
array_push($images, $url);<br />
}<br />
}</p>
<p>删除重复字母<br />
经常重复输入字母? 这个表达式正适合.</p>
<p>$text = preg_replace(&#8220;/s(w+s)1/i&#8221;, &#8220;$1&#8243;, $text);</p>
<p>删除重复的标点<br />
功能同上，但只是面对标点，白白重复的逗号</p>
<p>$text = preg_replace(&#8220;/.+/i&#8221;, &#8220;.&#8221;, $text);</p>
<p>匹配一个XML或者HTML标签<br />
这个简单的函数有两个参数：第一个是你要匹配的标签，第二个是包含XML或HTML的变量，再强调下，这个真的很强大</p>
<p>function get_tag( $tag, $xml ) {<br />
$tag = preg_quote($tag);<br />
preg_match_all(&#8216;{&lt;&#8217;.$tag.&#8217;[^&gt;]*&gt;(.*?)&lt;/&#8217;.$tag.&#8217;&gt;.&#8217;}',<br />
$xml,<br />
$matches,<br />
PREG_PATTERN_ORDER);</p>
<p>return $matches[1];<br />
}</p>
<p>匹配具有属性值的XML或者HTML标签<br />
这个功能和上面的非常相似，但是它允许你匹配的标签内部有属性值，例如你可以轻松匹配 &lt;div id=”header”&gt;</p>
<p>function get_tag( $attr, $value, $xml, $tag=null ) {<br />
if( is_null($tag) )<br />
$tag = &#8216;\w+&#8217;;<br />
else<br />
$tag = preg_quote($tag);</p>
<p>$attr = preg_quote($attr);<br />
$value = preg_quote($value);</p>
<p>$tag_regex = &#8220;/&lt;(&#8220;.$tag.&#8221;)[^&gt;]*$attr\s*=\s*&#8221;.<br />
&#8220;(['\"])$value\\2[^&gt;]*&gt;(.*?)&lt;\/\\1&gt;/&#8221;</p>
<p>preg_match_all($tag_regex,<br />
$xml,<br />
$matches,<br />
PREG_PATTERN_ORDER);</p>
<p>return $matches[3];<br />
}</p>
<p>匹配十六进制颜色值<br />
web开发者的另一个有趣的工具，它允许你匹配和验证十六进制颜色值.</p>
<p>$string = &#8220;#555555&#8243;;<br />
if (preg_match(&#8216;/^#(?:(?:[a-fd]{3}){1,2})$/i&#8217;, $string)) {<br />
echo &#8220;example 6 successful.&#8221;;<br />
}</p>
<p>查找页面 title<br />
这段代码方便查找和打印 网页 &lt;title&gt; 和&lt;/title&gt; 之间的内容</p>
<p>$fp = fopen(&#8220;http://www.catswhocode.com/blog&#8221;,&#8221;r&#8221;);<br />
while (!feof($fp) ){<br />
$page .= fgets($fp, 4096);<br />
}</p>
<p>$titre = eregi(&#8220;&lt;title&gt;(.*)&lt;/title&gt;&#8221;,$page,$regs);<br />
echo $regs[1];<br />
fclose($fp);</p>
<p>解释 Apache 日志<br />
大多数网站使用的都是著名的Apache服务器，如果你的网站也是，那么使用<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>正则表达式解析 apache 服务器日志 怎么样？</p>
<p>//Logs: Apache web server<br />
//Successful hits to HTML files only.  Useful for counting the number of  page views.<br />
&#8216;^((?#client IP or domain name)S+)s+((?#basic  authentication)S+s+S+)s+[((?#date and time)[^]]+)]s+&#8221;(?:GET|POST|HEAD)  ((?#file)/[^ ?"]+?.html?)??((?#parameters)[^ ?"]+)?  HTTP/[0-9.]+&#8221;s+(?#status code)200s+((?#bytes  transferred)[-0-9]+)s+&#8221;((?#referrer)[^"]*)&#8221;s+&#8221;((?#user agent)[^"]*)&#8221;$&#8217;</p>
<p>//Logs: Apache web server<br />
//404 errors only<br />
&#8216;^((?#client IP or domain name)S+)s+((?#basic  authentication)S+s+S+)s+[((?#date and time)[^]]+)]s+&#8221;(?:GET|POST|HEAD)  ((?#file)[^ ?"]+)??((?#parameters)[^ ?"]+)? HTTP/[0-9.]+&#8221;s+(?#status  code)404s+((?#bytes  transferred)[-0-9]+)s+&#8221;((?#referrer)[^"]*)&#8221;s+&#8221;((?#user agent)[^"]*)&#8221;$&#8217;</p>
<p>使用智能引号代替双引号<br />
如果你是一个印刷爱好者，你将喜欢这个允许用智能引号代替双引号的正则表达式，这个正则被WORDPRESS在其内容上使用</p>
<p>preg_replace(&#8216;B&#8221;b([^"x84x93x94rn]+)b&#8221;B&#8217;, &#8216;?1?&#8217;, $text);</p>
<p>检验密码的复杂度<br />
这个正则表达式将检测输入的内容是否包含6个或更多字母，数字，下划线和连字符. 输入必须包含至少一个大写字母，一个小写字母和一个数字</p>
<p>&#8216;A(?=[-_a-zA-Z0-9]*?[A-Z])(?=[-_a-zA-Z0-9]*?[a-z])(?=[-_a-zA-Z0-9]*?[0-9])[-_a-zA-Z0-9]{6,}z&#8217;</p>
<p>WordPress: 使用正则获得 帖子上的图片<br />
我知道很多人是WORDPRESS的使用者，你可能会喜欢并且愿意使用  那些从帖子的内容检索下来的图像代码。使用这个代码在你的BLOG只需要复制下面代码到你的某个文件里</p>
<p>&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> if (have_posts()) : ?&gt;<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> while (have_posts()) : the_post(); ?&gt;</p>
<p>&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a><br />
$szPostContent = $post-&gt;post_content;<br />
$szSearchPattern = &#8216;~&lt;img [^&gt;]* /&gt;~&#8217;;</p>
<p>// Run preg_match_all to grab all the images and save the results in  $aPics<br />
preg_match_all( $szSearchPattern, $szPostContent, $aPics );</p>
<p>// Check to see if we have at least 1 image<br />
$iNumberOfPics = count($aPics[0]);</p>
<p>if ( $iNumberOfPics &gt; 0 ) {<br />
// Now here you would do whatever you need to do with the images<br />
// For this example the images are just displayed<br />
for ( $i=0; $i &lt; $iNumberOfPics ; $i++ ) {<br />
echo $aPics[0][$i];<br />
};<br />
};</p>
<p>endwhile;<br />
endif;<br />
?&gt;</p>
<p>自动生成笑脸图案<br />
被WordPress使用的另一个方法, 这段代码可使你把图像自动更换一个笑脸符号</p>
<p>$texte=&#8217;A text with a smiley  &#8216;;<br />
echo str_replace(&#8216;:-)&#8217;,'&lt;img src=&#8221;smileys/souriant.png&#8221;&gt;&#8217;,$texte);</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/07/14/4566/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/07/14/4566/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/07/14/4566/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/07/14/4566/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/07/14/4566/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/topics/develope/php/" title="PHP" rel="tag nofollow">PHP</a>, <a href="http://www.iwanna.cn/tags/php/" title="PHP" rel="tag nofollow">PHP</a>, <a href="http://www.iwanna.cn/tags/regex/" title="RegEx" rel="tag nofollow">RegEx</a>, <a href="http://www.iwanna.cn/topics/develope/regex-develope/" title="RegEx" rel="tag nofollow">RegEx</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2009/07/05/1936/" title="PHP用正则表达式解析 XML (2009年07月5日)">PHP用正则表达式解析 XML</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/08/27/2195/" title="PHP正则表达式常用范例 (2009年08月27日)">PHP正则表达式常用范例</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/09/11/2233/" title="PHP中用正则表达式验证中文 (2009年09月11日)">PHP中用正则表达式验证中文</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/02/1652/" title="高级正则表达式的重要概念 (2009年06月2日)">高级正则表达式的重要概念</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/02/149/" title="设计模式之单例模式 (2009年04月2日)">设计模式之单例模式</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/07/31/2088/" title="论述PHP开发框架: What, When, Why and Which? (2009年07月31日)">论述PHP开发框架: What, When, Why and Which?</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/08/3767/" title="腾讯PHP程序员面试题目 (2010年06月8日)">腾讯PHP程序员面试题目</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/03/171/" title="简易Wordpress模板代码帮助手册中文版 (2009年04月3日)">简易Wordpress模板代码帮助手册中文版</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/08/3769/" title="用PHP数组对百万数据进行排重 (2010年06月8日)">用PHP数组对百万数据进行排重</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/07/05/1933/" title="用 PHP 读取和编写 XML DOM (2009年07月5日)">用 PHP 读取和编写 XML DOM</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/07/14/4566/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10个迷你且清爽的免费WordPress主题</title>
		<link>http://www.iwanna.cn/archives/2010/07/09/4453/</link>
		<comments>http://www.iwanna.cn/archives/2010/07/09/4453/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 15:16:42 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Translate]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[翻译]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4453</guid>
		<description><![CDATA[对于网站所有者而言，WordPress无疑已经成为内容管理系统的最佳选择。对于产生这种选择的原因有很多，但有一个因素是肯定的&#8211;可使用的主题可以找到很多，而且有许多的功能插件。互联网上有很多该类的主题，但我最喜欢的是简约风格的设计，会使人觉得内容也是可以说话的。如果您也恰好正在寻找简约风格的WordPress主题，那么您很幸运，这里为您找到的是10个免费的WordPress主题。
Un.complicated


The  Standard

Lifestreaming White

Clear

The  Daily Grind

Blue Bubble

Minimal  Press

Foliogrid

Clean  Home

Vostok


© 我想网 Akon 所有 , 2010. &#124;
永久链接 &#124;
没有评论 &#124;
提交到
Google Reader
鲜果
抓虾


	标签：Design, Design, theme, Translate, Translate, Wordpress, Wordpress, 翻译

	您可能会感兴趣的其他文章
	
	36个最新漂亮的WordPress免费主题下载 
	10个提供免费WordPress主题下载的网站 
	转换设计原图 PSD 为 HTML 
	深色调社交图标：免费且高质量的社交媒体图标集 
	9个可用性及Ux陷阱：了解如何避免它们 
	95个漂亮的名片设计【下】 
	95个漂亮的名片设计【上】 
	80个应用大背景图片的网站 
	80+个您应该在Twitter上追踪的设计博客 
	6个超级有用的印刷格式设计速查表 



Feed enhanced by Better Feed from  Ozh
]]></description>
			<content:encoded><![CDATA[<p>对于网站所有者而言，<strong>WordPress</strong>无疑已经成为内容管理系统的最佳选择。对于产生这种选择的原因有很多，但有一个因素是肯定的&#8211;可使用的主题可以找到很多，而且有许多的功能插件。互联网上有很多该类的主题，但我最喜欢的是简约风格的设计，会使人觉得内容也是可以说话的。如果您也恰好正在寻找简约风格的WordPress主题，那么您很幸运，这里为您找到的是10个免费的WordPress主题。</p>
<h3><a href="http://www.siiimple.com/un-complicated-wordpress-theme" target="_blank">Un.complicated</a></h3>
<p><a href="http://www.siiimple.com/un-complicated-wordpress-theme" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/09/minimal_wordpress_themes/minimal_themes_3.jpg" alt="minimal themes" /></a><br />
<span id="more-4453"></span></p>
<h3><a href="http://www.siiimple.com/the-standard" target="_blank">The  Standard</a></h3>
<p><a href="http://www.siiimple.com/the-standard" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/09/minimal_wordpress_themes/minimal_themes_4.jpg" alt="minimal themes" /></a></p>
<h3><a href="http://www.project66.net/lifestreaming-white/" target="_blank">Lifestreaming White</a></h3>
<p><a href="http://www.project66.net/lifestreaming-white/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/09/minimal_wordpress_themes/minimal_themes_5.jpg" alt="minimal themes" /></a></p>
<h3><a href="http://www.diovo.com/links/clear/" target="_blank">Clear</a></h3>
<p><a href="http://www.diovo.com/links/clear/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/09/minimal_wordpress_themes/minimal_themes_6.jpg" alt="minimal themes" /></a></p>
<h3><a href="http://www.siiimple.com/tdg-theme" target="_blank">The  Daily Grind</a></h3>
<p><a href="http://www.siiimple.com/tdg-theme" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/09/minimal_wordpress_themes/minimal_themes_1.jpg" alt="minimal themes" /></a></p>
<h3><a href="http://www.flexible7.com/bluebubble-wordpress-theme/" target="_blank">Blue Bubble</a></h3>
<p><a href="http://www.flexible7.com/bluebubble-wordpress-theme/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/09/minimal_wordpress_themes/minimal_themes_2.jpg" alt="minimal themes" /></a></p>
<h3><a href="http://www.siiimple.com/mpw-theme" target="_blank">Minimal  Press</a></h3>
<p><a href="http://www.siiimple.com/mpw-theme" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/09/minimal_wordpress_themes/minimal_themes_7.jpg" alt="minimal themes" /></a></p>
<h3><a href="http://www.frogsthemes.com/wordpress-portfolio-themes/foliogrid/" target="_blank">Foliogrid</a></h3>
<p><a href="http://www.frogsthemes.com/wordpress-portfolio-themes/foliogrid/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/09/minimal_wordpress_themes/minimal_themes_8.jpg" alt="minimal themes" /></a></p>
<h3><a href="http://midmodesign.com/news/general/our-special-wordpress-theme/" target="_blank">Clean  Home</a></h3>
<p><a href="http://midmodesign.com/news/general/our-special-wordpress-theme/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/09/minimal_wordpress_themes/minimal_themes_9.jpg" alt="minimal themes" /></a></p>
<h3><a href="http://www.vostoktheme.com/" target="_blank">Vostok</a></h3>
<p><a href="http://www.vostoktheme.com/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/07/09/minimal_wordpress_themes/minimal_themes_10.jpg" alt="minimal themes" /></a></p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/07/09/4453/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/07/09/4453/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/07/09/4453/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/07/09/4453/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/07/09/4453/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/design/" title="Design" rel="tag nofollow">Design</a>, <a href="http://www.iwanna.cn/topics/ui/design-ui/" title="Design" rel="tag nofollow">Design</a>, <a href="http://www.iwanna.cn/tags/theme/" title="theme" rel="tag nofollow">theme</a>, <a href="http://www.iwanna.cn/tags/translate/" title="Translate" rel="tag nofollow">Translate</a>, <a href="http://www.iwanna.cn/topics/iwanna/translate-iwanna/" title="Translate" rel="tag nofollow">Translate</a>, <a href="http://www.iwanna.cn/topics/develope/php/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a>, <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a>, <a href="http://www.iwanna.cn/tags/translates/" title="翻译" rel="tag nofollow">翻译</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/07/03/4338/" title="36个最新漂亮的WordPress免费主题下载 (2010年07月3日)">36个最新漂亮的WordPress免费主题下载</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/24/4708/" title="10个提供免费WordPress主题下载的网站 (2010年07月24日)">10个提供免费WordPress主题下载的网站</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/07/05/1923/" title="转换设计原图 PSD 为 HTML (2009年07月5日)">转换设计原图 PSD 为 HTML</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/22/3294/" title="深色调社交图标：免费且高质量的社交媒体图标集 (2010年05月22日)">深色调社交图标：免费且高质量的社交媒体图标集</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/16/4015/" title="9个可用性及Ux陷阱：了解如何避免它们 (2010年06月16日)">9个可用性及Ux陷阱：了解如何避免它们</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/20/3266/" title="95个漂亮的名片设计【下】 (2010年05月20日)">95个漂亮的名片设计【下】</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/20/3263/" title="95个漂亮的名片设计【上】 (2010年05月20日)">95个漂亮的名片设计【上】</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/05/11/1049/" title="80个应用大背景图片的网站 (2009年05月11日)">80个应用大背景图片的网站</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/16/4010/" title="80+个您应该在Twitter上追踪的设计博客 (2010年06月16日)">80+个您应该在Twitter上追踪的设计博客</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/08/4410/" title="6个超级有用的印刷格式设计速查表 (2010年07月8日)">6个超级有用的印刷格式设计速查表</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/07/09/4453/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10个提高WordPress安全性的小诀窍</title>
		<link>http://www.iwanna.cn/archives/2010/07/04/4340/</link>
		<comments>http://www.iwanna.cn/archives/2010/07/04/4340/#comments</comments>
		<pubDate>Sat, 03 Jul 2010 16:55:07 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[safe]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4340</guid>
		<description><![CDATA[安全是永恒的话题，在互联网上更是如此，本文将为大家介绍10个小诀窍来提高WordPress博客的安全性。
1.删除错误提示。
当我们登录WordPress后台失败 时会显示错误信息。如果有人想攻击你的博客那么他们会从错误提示里得到很多有用的信息，我们需要做的就是不显示任何信息。
解决：打开 functions.php  文件并添加如下代码：
add_filter(&#8216;login_errors&#8217;,create_function(&#8216;$a&#8217;,  &#8220;return null;&#8221;));
这段代码可以让返回的错误信息为空。

2.使用SSL。
如果你担心数据泄露或被截获，那就使用 SSL连接方式吧。但是之前请确保博客主机支持SSL，如果不支持请直接跳过本条。
解决：打开 wp-config.php 文 件（一般位于根目录）添加以下代码：
define(&#8216;FORCE_SSL_ADMIN&#8217;, true);
我 们定义了FORCE_SSL_ADMIN常数，其值设置为true。这样就在WordPress里开启了SSL。
3.用.htaccess 保护配置文件。
WordPress 用户都知道wp-config.php文件的重要性，它保存了所有的配置信息：用户名、密码等等。所以控制对 wp-config.php 的 访问权限就变得尤为必要。
解决：在修改.htaccess文件前请先备份，然后打开并粘贴下面代码：
&#60;files  wp-config.php&#62;
order allow,deny
deny from all
&#60;/files&#62;
修改后会拒绝任何对 wp-config.php 文件的访问。
4.建立访问黑名单。
是不 是常被一些垃圾评论制造者所烦恼？如果是，需要做的就是屏蔽他们的IP，让他们再也无法访问你的博客。
解决：修改.htaccess文 件添加以下代码，事前别忘备份。
&#60;Limit GET POST PUT&#62;
order  allow,deny
allow from all
deny from 123.456.789
deny from  93.121.788
deny from 223.956.789
deny from 128.456.780
&#60;/LIMIT&#62;
修 改后上面这些IP就会被限制访问。
5.防止脚本注入。
脚 本注入往往用来窃取用户信息，如果攻击者一旦得逞大多数情况下造成的损失很难挽回。
解决：依旧是.htaccess 文 件添加以下代码，事先备份。
Options +FollowSymLinks
RewriteEngine  On
RewriteCond %{QUERY_STRING} (\&#60;&#124;%3C).*script.*(\&#62;&#124;%3E)  [NC,OR]
RewriteCond [...]]]></description>
			<content:encoded><![CDATA[<p>安全是永恒的话题，在互联网上更是如此，本文将为大家介绍<strong><a href="http://www.iwanna.cn/archives/2010/07/04/4340/" title="提高WordPress安全性的十个要点">10个小诀窍来提高WordPress博客的安全性</a></strong>。</p>
<p>1.删除错误提示。</p>
<p>当我们登录WordPress后台失败 时会显示错误信息。如果有人想攻击你的博客那么他们会从错误提示里得到很多有用的信息，我们需要做的就是不显示任何信息。</p>
<p>解决：打开<em> functions.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>  文件</em>并添加如下代码：</p>
<blockquote><p>add_filter(&#8216;login_errors&#8217;,create_function(&#8216;$a&#8217;,  &#8220;return null;&#8221;));</p></blockquote>
<p>这段代码可以让返回的错误信息为空。<br />
<span id="more-4340"></span><br />
2.使用SSL。</p>
<p>如果你担心数据泄露或被截获，那就使用 SSL连接方式吧。但是之前请确保博客主机支持SSL，如果不支持请直接跳过本条。</p>
<p>解决：打开 <em>wp-config.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> </em>文 件（一般位于根目录）添加以下代码：</p>
<blockquote><p>define(&#8216;FORCE_SSL_ADMIN&#8217;, true);</p></blockquote>
<p>我 们定义了FORCE_SSL_ADMIN常数，其值设置为true。这样就在WordPress里开启了SSL。</p>
<p>3.用.htaccess 保护配置文件。</p>
<p>WordPress 用户都知道<em>wp-config.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a></em>文件的重要性，它保存了所有的配置信息：用户名、密码等等。所以控制对 <em>wp-config.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> </em>的 访问权限就变得尤为必要。</p>
<p>解决：在修改<em>.htaccess</em>文件前请先备份，然后打开并粘贴下面代码：</p>
<blockquote><p>&lt;files  wp-config.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>&gt;<br />
order allow,deny<br />
deny from all<br />
&lt;/files&gt;</p></blockquote>
<p>修改后会拒绝任何对 <em>wp-config.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> </em>文件的访问。</p>
<p>4.建立访问黑名单。</p>
<p>是不 是常被一些垃圾评论制造者所烦恼？如果是，需要做的就是屏蔽他们的IP，让他们再也无法访问你的博客。</p>
<p>解决：修改<em>.htaccess</em>文 件添加以下代码，事前别忘备份。</p>
<blockquote><p>&lt;Limit GET POST PUT&gt;<br />
order  allow,deny<br />
allow from all<br />
deny from 123.456.789<br />
deny from  93.121.788<br />
deny from 223.956.789<br />
deny from 128.456.780<br />
&lt;/LIMIT&gt;</p></blockquote>
<p>修 改后上面这些IP就会被限制访问。</p>
<p>5.防止脚本注入。</p>
<p>脚 本注入往往用来窃取用户信息，如果攻击者一旦得逞大多数情况下造成的损失很难挽回。</p>
<p>解决：依旧是<em>.htaccess </em>文 件添加以下代码，事先备份。</p>
<blockquote><p>Options +FollowSymLinks<br />
RewriteEngine  On<br />
RewriteCond %{QUERY_STRING} (\&lt;|%3C).*script.*(\&gt;|%3E)  [NC,OR]<br />
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2})  [OR]<br />
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})<br />
RewriteRule  ^(.*)$ index.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> [F,L]</p></blockquote>
<p>修改后所有的请求都会被检查是否包换脚本段，如果包含就会拒绝 请求返回403错误。</p>
<p>6.防止图片盗链。</p>
<p>大多数虚拟主机和 VPS都是限制流量的，而图片往往会消耗绝大部分流量。我们在希望自己文章被更多人访问和传播的同时又不得不去面对图片链接带来的巨大流量。所以防止图片 外链是绝对必要的。</p>
<p>解决：修改<em> .htaccess </em>文件添加以下代码，之前一定记得备份。</p>
<blockquote><p>RewriteEngine  On<br />
#Replace ?mysite\.com/ with your blog url<br />
RewriteCond  %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC]<br />
RewriteCond  %{HTTP_REFERER} !^$<br />
#Replace /images/nohotlink.jpg with your &#8220;don&#8217;t  hotlink&#8221; image url<br />
RewriteRule .*\.(jpe?g|gif|bmp|png)$  /images/nohotlink.jpg [L]</p></blockquote>
<p>修改完成之后只有你的网站可以引用图片，而其他 外部引用都会被替换为<em>nohotlink.jpg </em>文件。你可以在<em>nohotlink.jpg </em>里展示版权信息。当 然你也可以指定替换为一个不存在的文件。</p>
<p>7.创建一个 插件来阻止恶意请求。</p>
<p>黑客往往使用恶意查询来修着博客的薄弱点用来攻击，虽然WordPress自身有比较完善的防 护机制，但也不是没有提高的余地。</p>
<p>解决：创建一个文本文件粘贴以下代码，并保存为 <em>blockbadqueries.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> </em>。 上传到你博客的<em>wp-content/plugins</em>文件夹下，进入后台开启这个插件。</p>
<blockquote><p>&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a><br />
/*<br />
<a href="http://www.iwanna.cn/tags/plugin/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Plugin">Plugin</a>  Name: Block Bad Queries<br />
<a href="http://www.iwanna.cn/tags/plugin/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Plugin">Plugin</a> URI:  http://perishablepress.com/press/2009/12/22/protect-wordpress-against-malicious-url-requests/<br />
Description:  Protect WordPress Against Malicious URL Requests<br />
Author URI:  http://perishablepress.com/<br />
Author: Perishable Press<br />
Version: 1.0<br />
*/</p>
<p>global  $user_ID;</p>
<p>if($user_ID) {<br />
if(!current_user_can(&#8216;level_10&#8242;)) {<br />
if  (strlen($_SERVER['REQUEST_URI']) &gt; 255 ||<br />
strpos($_SERVER['REQUEST_URI'],  &#8220;eval(&#8220;) ||<br />
strpos($_SERVER['REQUEST_URI'], &#8220;CONCAT&#8221;) ||<br />
strpos($_SERVER['REQUEST_URI'],  &#8220;UNION+SELECT&#8221;) ||<br />
strpos($_SERVER['REQUEST_URI'], &#8220;base64&#8243;)) {<br />
@header(&#8220;HTTP/1.1  414 Request-URI Too Long&#8221;);<br />
@header(&#8220;Status: 414 Request-URI Too  Long&#8221;);<br />
@header(&#8220;Connection: Close&#8221;);<br />
@exit;<br />
}<br />
}<br />
}<br />
?&gt;</p></blockquote>
<p>修 改后如果有过长请求（超过255个字符）或者URI中存在<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>函数就会返回一个414错误。</p>
<p>8.删除你的WordPress版本号，切记！</p>
<p>WordPress 会在头文件里显示版本号。告诉攻击者你版本号往往意味着他们可以少走很多弯路，为了不让他们长驱直入为什么不隐藏版本号呢？</p>
<p>解决：粘贴如下 代码至 <em>functions.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> </em>文件，保存并刷新你的博客。</p>
<blockquote><p>remove_action(&#8216;wp_head&#8217;,  &#8216;wp_generator&#8217;);</p></blockquote>
<p>现在看，是不是没有版本号了。</p>
<p>9.修改默认管理员名。</p>
<p>蛮力攻击是破解一个密码最简单的办法 之一。 该方法很简单：尽可能多的尝试不同的密码。如果他们知道的用户名，他们只需要破解密码。  这就是为什么你应该改变默认的“管理员”用户名——“admin”的原因。请注意，WordPress的3.0版本会让您选择您想要的默认用户名。  但是这个方法依然适合3.0以前的版本。</p>
<p>解决：打开数据库执行如下SQL语句，“Your New  Username”为你想修改的用户名。</p>
<blockquote><p>UPDATE wp_users SET user_login =  &#8216;Your New Username&#8217; WHERE user_login = &#8216;Admin&#8217;;</p></blockquote>
<p>修改后使用 新的管理员名户名登陆。</p>
<p>10.防止目录浏览。</p>
<p>默 认情况下，大多数主机允许目录列表。  因此，如果在浏览器的地址栏键入www.yourblog.com/wp-includes，就会看到在该目录下的所有文件。  这无疑是一个安全风险，因为黑客可以看到上一次进行了修改的文件并访问它们。</p>
<p>解决：修改<em> .htaccess </em>文件添加 以下代码，之前一定记得备份。</p>
<blockquote><p>Options -Indexes</p></blockquote>
<p>注意修 改后并不会影响用户正常的访问这些文件。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/07/04/4340/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/07/04/4340/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/07/04/4340/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/07/04/4340/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/07/04/4340/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/safe/" title="safe" rel="tag nofollow">safe</a>, <a href="http://www.iwanna.cn/topics/develope/php/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a>, <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/07/08/4406/" title="服务器安全问题汇总 (2010年07月8日)">服务器安全问题汇总</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4071/" title="如何通过 AutoMySQLBackup 备份你的博客数据库 (2010年06月18日)">如何通过 AutoMySQLBackup 备份你的博客数据库</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/09/4451/" title="基本代码安全知识 (2010年07月9日)">基本代码安全知识</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/30/4271/" title="免费获得12款RichWP WordPress 收费主题 (2010年06月30日)">免费获得12款RichWP WordPress 收费主题</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4073/" title="三种直接备份 WordPress 博客数据库的方法 (2010年06月18日)">三种直接备份 WordPress 博客数据库的方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4109/" title="WordPress调用 PageCookery的方法 (2010年06月21日)">WordPress调用 PageCookery的方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/29/4255/" title="WordPress站点性能优化实战 (2010年06月29日)">WordPress站点性能优化实战</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4119/" title="WordPress模板结构及页面函数调用 (2010年06月21日)">WordPress模板结构及页面函数调用</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4067/" title="WordPress 3.0正式版发布 (2010年06月18日)">WordPress 3.0正式版发布</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/08/4404/" title="web代码安全问题总结 (2010年07月8日)">web代码安全问题总结</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/07/04/4340/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>36个最新漂亮的WordPress免费主题下载</title>
		<link>http://www.iwanna.cn/archives/2010/07/03/4338/</link>
		<comments>http://www.iwanna.cn/archives/2010/07/03/4338/#comments</comments>
		<pubDate>Sat, 03 Jul 2010 03:27:24 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Translate]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[翻译]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4338</guid>
		<description><![CDATA[博客模板永远不会让您有非常多的选择，尤其是对于常识性使用的您来说，而免费的主题往往又都是丑陋、凌乱而枯燥的；也有一些设计师们会免费提供一些您可以使用的高品质WordPress主题，您可以用来作为个人或商业项目，不受任何的限制。这里展示的是36个最佳时尚类型的免费WordPress主题，在使用之前您最好瞥一眼使用协议。
自己查看下这份列表吧，他们并不是以特定的顺序排列的。希望这套集合您会找到自己喜欢的！！
1. Creative by Nature



2. Paper Wall Wordpress Theme


3. Magazeen


4. Vintage Wordpress Theme


5. Irresistible


6. Mainstream


7. Milano


8. Blues


9. Gallery Wordpress Theme


10. Gamezine


11. Grunge Style


12. Free Wordpress Theme I Can Watch Movies


13. Imprezz


14. Imagination


15. Crafty CART


16. Freebies Dock


17. Matatag


18. ISO Therm News Magazine Wordpress Theme


19. Magaling


20. Blog Theme


21. Evidens


22. One Room Free Wordpress Theme


23. Old School


24.The Clam Shell


25. [...]]]></description>
			<content:encoded><![CDATA[<p>博客模板永远不会让您有非常多的选择，尤其是对于常识性使用的您来说，而免费的主题往往又都是丑陋、凌乱而枯燥的；也有一些设计师们会免费提供一些您可以使用的高品质WordPress主题，您可以用来作为个人或商业项目，不受任何的限制。这里展示的是<strong><a href="http://www.iwanna.cn/archives/2010/07/03/4338/" title="36个最新漂亮的WordPress免费主题下载">36个最佳时尚类型的免费WordPress主题</a></strong>，在使用之前您最好瞥一眼使用协议。</p>
<p>自己查看下这份列表吧，他们并不是以特定的顺序排列的。希望这套集合您会找到自己喜欢的！！</p>
<h4>1. <a href="http://www.smashingmagazine.com/2009/07/30/free-portfolio-wordpress-theme-creative-by-nature/" target="_blank">Creative by Nature</a></h4>
<p><a href="http://www.smashingmagazine.com/2009/07/30/free-portfolio-wordpress-theme-creative-by-nature/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/1.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://cssmayo.com/preview/creative_by_nature/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.smashingmagazine.com/2009/07/30/free-portfolio-wordpress-theme-creative-by-nature/" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a><br />
<span id="more-4338"></span></p>
<h4>2. <a href="http://www.smashingmagazine.com/2009/07/10/free-wordpress-theme-paper-wall/" target="_blank">Paper Wall Wordpress Theme</a></h4>
<p><a href="http://www.smashingmagazine.com/2009/07/10/free-wordpress-theme-paper-wall/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/5.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://wordpress.indeziner.com/index.php?wptheme=Paper+Wall" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.smashingmagazine.com/2009/07/10/free-wordpress-theme-paper-wall/" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>3. <a href="http://www.smashingmagazine.com/2009/02/23/magazeen-free-magazine-look-wordpress-theme/" target="_blank">Magazeen</a></h4>
<p><a href="http://www.smashingmagazine.com/2009/02/23/magazeen-free-magazine-look-wordpress-theme/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/16.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://demo.wefunction.com/?wptheme=Magazeen" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.smashingmagazine.com/2009/02/23/magazeen-free-magazine-look-wordpress-theme/" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>4. <a href="http://www.smashingmagazine.com/2009/01/28/vintage-and-blues-wordpress-themes/" target="_blank">Vintage Wordpress Theme</a></h4>
<p><a href="http://www.smashingmagazine.com/2009/01/28/vintage-and-blues-wordpress-themes/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/4.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://dev1.agriya.com/wpthemes/?wptheme=wordpress-blue" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.smashingmagazine.com/2009/01/28/vintage-and-blues-wordpress-themes/" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>5. <a href="http://www.woothemes.com/2009/02/irresistible/" target="_blank">Irresistible</a></h4>
<p><a href="http://www.woothemes.com/2009/02/irresistible/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/3.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://woothemes.com/demo/?t=25" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.woothemes.com/free-themes/Irresistible" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>6. <a href="http://www.woothemes.com/2009/07/mainstream/" target="_blank">Mainstream</a></h4>
<p><a href="http://www.woothemes.com/2009/07/mainstream/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/19.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://www.woothemes.com/demo/?t=39" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.woothemes.com/free-themes/Mainstream" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>7. <a href="http://wpstart.org/milano-free-portfolio-pro-blogging-wp-theme/" target="_blank">Milano</a></h4>
<p><a href="http://wpstart.org/milano-free-portfolio-pro-blogging-wp-theme/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/2.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://wpstart.org/wp-content/uploads/2009/05/milano_index.jpg" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://wpstart.org/goto/http://web2feel.com/milano-theme/" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>8. <a href="http://www.smashingmagazine.com/2009/01/28/vintage-and-blues-wordpress-themes/" target="_blank">Blues</a></h4>
<p><a href="http://www.smashingmagazine.com/2009/01/28/vintage-and-blues-wordpress-themes/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/6.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://dev1.agriya.com/wpthemes/?wptheme=wordpress-blue" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.smashingmagazine.com/2009/01/28/vintage-and-blues-wordpress-themes/" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>9.<a href="http://www.smashingmagazine.com/2009/05/04/download-gallery-a-free-wordpress-theme/" target="_blank"> Gallery Wordpress Theme</a></h4>
<p><a href="http://www.smashingmagazine.com/2009/05/04/download-gallery-a-free-wordpress-theme/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/7.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://mixcss.com/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.smashingmagazine.com/2009/05/04/download-gallery-a-free-wordpress-theme/" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>10. <a href="http://web2feel.com/gamezine-theme/" target="_blank">Gamezine</a></h4>
<p><a href="http://web2feel.com/gamezine-theme/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/8.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://web2feel.com/gamezine/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://web2feel.com/downloads/gamezine.zip" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>11. <a href="http://www.smashingapps.com/2009/07/03/smashing-release-grunge-style-a-3-column-free-wordpress-theme.html" target="_blank">Grunge Style</a></h4>
<p><a href="http://www.smashingapps.com/2009/07/03/smashing-release-grunge-style-a-3-column-free-wordpress-theme.html" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/9.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://demo.templatelite.com/?wptheme=Grunge+Style" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.smashingapps.com/wp-content/uploads/freebies/word-themes/grunge-style.zip" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>12. <a href="http://www.acosmin.com/free-WordPress-theme-i-can-watch-movies/" target="_blank">Free Wordpress Theme I Can Watch Movies</a></h4>
<p><a href="http://www.acosmin.com/free-WordPress-theme-i-can-watch-movies/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/10.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://www.acosmin.com/wptest/?theme=i_can_watch_movies" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.acosmin.com/download/48/" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>13. <a href="http://www.smashingmagazine.com/2009/03/10/download-imprezz-a-free-wordpress-theme/" target="_blank">Imprezz</a></h4>
<p><a href="http://www.smashingmagazine.com/2009/03/10/download-imprezz-a-free-wordpress-theme/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/11.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://www.productivedreams.com/imprezz-a-free-wordpress-theme/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=ImpreZZ.zip" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>14. <a href="http://www.cssjockey.com/imagination/" target="_blank">Imagination</a></h4>
<p><a href="http://www.cssjockey.com/imagination/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/12.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://imagination.cssjockey.com/granite/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.cssjockey.com/imagination/" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>15. <a href="http://www.thekingcart.com/2008/10/02/crafty-cart-free-wordpress-ecommerce-plugin-theme/" target="_blank">Crafty CART</a></h4>
<p><a href="http://www.thekingcart.com/2008/10/02/crafty-cart-free-wordpress-ecommerce-plugin-theme/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/13.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://demo.billionstudio.com/?wptheme=Crafty%20Cart" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.thekingcart.com/wp/wp-content/plugins/download-monitor/download.php?id=1" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>16. <a href="http://freebiesdock.com/freemium-wordpress-theme/" target="_blank">Freebies Dock</a></h4>
<p><a href="http://freebiesdock.com/freemium-wordpress-theme/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/14.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://demo.freebiesdock.com/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://freebiesdock.com/get-it/freemium-wordpress-theme" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>17. <a href="http://www.paddsolutions.com/wordpress-theme-matatag/" target="_blank">Matatag</a></h4>
<p><a href="http://www.paddsolutions.com/wordpress-theme-matatag/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/15.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://paddsolutions.com/wpmag/matatag/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.paddsolutions.com/wordpress-theme-matatag/" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>18. <a href="http://bizzartic.com/2009/03/29/isotherm-news-magazine-wordpress-theme/" target="_blank">ISO Therm News Magazine Wordpress Theme</a></h4>
<p><a href="http://bizzartic.com/2009/03/29/isotherm-news-magazine-wordpress-theme/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/17.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://bizzartic.com/bizzthemes/isotherm/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://bizzartic.com/bizzthemes/isotherm/download/" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>19. <a href="http://www.paddsolutions.com/wordpress-theme-magaling/" target="_blank">Magaling</a></h4>
<p><a href="http://www.paddsolutions.com/wordpress-theme-magaling/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/18.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://paddsolutions.com/wpmag/magaling/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.paddsolutions.com/wp-content/plugins/download-monitor/download.php?id=38" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>20. <a href="http://www.woothemes.com/2008/11/blogtheme/" target="_blank">Blog Theme</a></h4>
<p><a href="http://www.woothemes.com/2008/11/blogtheme/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/20.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://www.woothemes.com/demo/?t=18" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.woothemes.com/free-themes/BlogTheme" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>21. <a href="http://designdisease.com/preview/evidens-dark" target="_blank">Evidens</a></h4>
<p><a href="http://designdisease.com/preview/evidens-dark" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/21.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://designdisease.com/preview/evidens-dark" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://designdisease.com/free-wordpress-themes/" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>22.<a href="http://web-kreation.com/index.php/wordpress/oneroom-another-free-wordpress-theme-by-web-kreation/" target="_blank"> One Room Free Wordpress Theme</a></h4>
<p><a href="http://web-kreation.com/index.php/wordpress/oneroom-another-free-wordpress-theme-by-web-kreation/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/22.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://web-kreation.com/demos/oneroom/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://web-kreation.com/?dl_id=21" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>23. <a href="http://themehybrid.com/themes/old-school" target="_blank">Old School</a></h4>
<p><a href="http://themehybrid.com/themes/old-school" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/23.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://themehybrid.com/demo/old-school/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://themehybrid.com/downloads/old-school.zip" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>24.<a href="http://fearlessflyer.com/2009/04/free-wp-theme-the-clam-shell/" target="_blank">The Clam Shell</a></h4>
<p><a href="http://fearlessflyer.com/2009/04/free-wp-theme-the-clam-shell/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/24.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://clam.fearlessflyer.com/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.box.net/shared/coy7gjvvcg" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>25. <a href="http://web2feel.com/scarlett-theme/" target="_blank">Scarlett</a></h4>
<p><a href="http://web2feel.com/scarlett-theme/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/25.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://web2feel.com/scarlett/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://web2feel.com/downloads/scarlett.zip" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>26. <a href="http://www.woothemes.com/2009/04/meta-morphosis/" target="_blank">Meta morphosis</a></h4>
<p><a href="http://www.woothemes.com/2009/04/meta-morphosis/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/26.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://www.woothemes.com/demo/?t=31" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.woothemes.com/free-themes/Meta_Morphosis" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>27. <a href="http://www.press75.com/folio-elements-setup-usage/" target="_blank">Folio Elements</a></h4>
<p><a href="http://www.press75.com/folio-elements-setup-usage/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/27.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://www.press75.com/demos/folio-elements/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><img title="free  Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></p>
<h4>28. <a href="http://www.wpzoom.com/themes/travelogue/" target="_blank">Travelogue</a></h4>
<p><a href="http://www.wpzoom.com/themes/travelogue/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/28.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://www.themescloset.com/demo/travelogue/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.themescloset.com/downloads/travelogue_v10.zip" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>29. <a href="http://thinkdesignblog.com/free-wordpress-theme-versatility-lite.htm" target="_blank">Versatility Lite</a></h4>
<p><a href="http://thinkdesignblog.com/free-wordpress-theme-versatility-lite.htm" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/29.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://test2.think-four.com/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://thinkdesignblog.com/wp-content/uploads/2008/11/VersatilityLite.zip" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>30. <a href="http://wellmedicated.com/themes/zinepress/" target="_blank">Zine Press</a></h4>
<p><a href="http://wellmedicated.com/themes/zinepress/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/30.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://zinepress.wellmedicated.com/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://wellmedicated.com/wp-content/uploads/zinepress_v1.0.1.zip" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>31. <a href="http://web2feel.com/futura/" target="_blank">Zingmag</a></h4>
<p><a href="http://web2feel.com/zinmag-futura/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/31.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://web2feel.com/futura/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://web2feel.com/zinmag-futura/" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>32. <a href="http://web2feel.com/zinfolio-theme/" target="_blank">Zinfolio</a></h4>
<p><a href="http://web2feel.com/zinfolio-theme/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/32.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://www.web2feel.com/zinfolio/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://web2feel.com/downloads/zinfolio.zip" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>33. <a href="http://wpthemedesigner.com/demo/" target="_blank">Chara Theme</a></h4>
<p><a href="http://www.wpthemedesigner.com/tags/chara-theme/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/33.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://wpthemedesigner.com/demo/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.wpthemedesigner.com/tags/chara-theme/" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>34. <a href="http://www.dvq.co.nz/freebies/freebie-freestyle-wordpress-theme/" target="_blank">Free { style }</a></h4>
<p><a href="http://www.dvq.co.nz/freebies/freebie-freestyle-wordpress-theme/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/34.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://themes.dvq.co.nz/preview/?themedemo=freestyle" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://themes.dvq.co.nz/theme-files/FreeStyle-by-DVQ.zip" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>35. <a href="http://www.toptut.com/2009/05/19/zen-gins-new-free-magazine-style-theme-for-our-readers/" target="_blank">Impulse Magazine Style Theme</a></h4>
<p><a href="http://www.toptut.com/2009/05/19/zen-gins-new-free-magazine-style-theme-for-our-readers/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/35.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://impulseblogger.com/demo/" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://www.toptut.com/wp-content/uploads/2009/05/gins.zip" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<h4>36. <a href="http://designdisease.com/blog/compositio-wordpress-theme/" target="_blank">Compositio</a></h4>
<p><a href="http://designdisease.com/blog/compositio-wordpress-theme/" target="_blank"><img title="Beautiful Free Wordpress  Themes" src="http://dzineblog.com/wp-content/uploads/2009/08/Wordpress_themes/36.jpg" alt="" width="600" height="381" /></a><br />
<a href="http://designdisease.com/preview/compositio" target="_blank"><img title="Beautiful and “NEW” Free  Wordpress Templat" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="" width="102" height="31" /></a><a href="http://designdisease.com/download-manager.php?id=12" target="_blank"><img title="free Wordpress Themes" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="" width="106" height="31" /></a></p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/07/03/4338/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/07/03/4338/#comments">2 条评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/07/03/4338/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/07/03/4338/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/07/03/4338/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/download/" title="download" rel="tag nofollow">download</a>, <a href="http://www.iwanna.cn/tags/theme/" title="theme" rel="tag nofollow">theme</a>, <a href="http://www.iwanna.cn/tags/translate/" title="Translate" rel="tag nofollow">Translate</a>, <a href="http://www.iwanna.cn/topics/iwanna/translate-iwanna/" title="Translate" rel="tag nofollow">Translate</a>, <a href="http://www.iwanna.cn/topics/develope/php/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a>, <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a>, <a href="http://www.iwanna.cn/tags/translates/" title="翻译" rel="tag nofollow">翻译</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/07/09/4453/" title="10个迷你且清爽的免费WordPress主题 (2010年07月9日)">10个迷你且清爽的免费WordPress主题</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/24/4708/" title="10个提供免费WordPress主题下载的网站 (2010年07月24日)">10个提供免费WordPress主题下载的网站</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/07/05/1923/" title="转换设计原图 PSD 为 HTML (2009年07月5日)">转换设计原图 PSD 为 HTML</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/17/1828/" title="用jQuery和CSS构建下拉菜单 (2009年06月17日)">用jQuery和CSS构建下拉菜单</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/22/3294/" title="深色调社交图标：免费且高质量的社交媒体图标集 (2010年05月22日)">深色调社交图标：免费且高质量的社交媒体图标集</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/18/3210/" title="如何正确购买一个已经存在的域名(SEO友好) (2010年05月18日)">如何正确购买一个已经存在的域名(SEO友好)</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/05/27/1176/" title="如何备份所有的浏览器 &#8211; 5 个小贴士(Google Chrome, Firefox, Safari, Internet Explorer, and Opera) (2009年05月27日)">如何备份所有的浏览器 &#8211; 5 个小贴士(Google Chrome, Firefox, Safari, Internet Explorer, and Opera)</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/05/11/1046/" title="基本指南 &#8211; CSS处理大背景图片 (2009年05月11日)">基本指南 &#8211; CSS处理大背景图片</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/04/13/2615/" title="分析：一个PHP程序员的价值 (2010年04月13日)">分析：一个PHP程序员的价值</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/02/1666/" title="关于浮动的所有实现 (2009年06月2日)">关于浮动的所有实现</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/07/03/4338/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>免费获得12款RichWP WordPress 收费主题</title>
		<link>http://www.iwanna.cn/archives/2010/06/30/4271/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/30/4271/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 16:10:59 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4271</guid>
		<description><![CDATA[作为墙内之蛙，虽然见识不广，但我们经常能免费使用一些很极品也很昂贵的WordPress  收费主题，这很有中国特色，也正体现了社会主义互联网的优越性。
现在，国外一WordPress 主题制作团队——RichWP，免费放出了他们的12款收费主题，随便下随便用。先来看看这堆主题值多少个美刀，才好让大家有性趣去下载：

The Regular versions（标准版） of my themes sold for $69.90
The PRO versions（专业版） sold for $127.00
All Themes PRO Package（批发价） sold for $467.00
It’s all yours for FREE!


我大概看了一下，12款主题基本都是图片展示类的，都走类似Apple  官网的灰白简约风，布局结构多变，特别是个别主题的大幅幻灯切换，很霸气。不管大家是不是用得着，这12款都是收藏、学习、折腾、篡改之佳品，值得保存。
挑几款比较大气、高端、稳重、简洁又上档次的展示一下（缩略图直接引用自RichWP，效果请以实物为准）：
1. Affiliate Theme &#124; Demo
大幅通栏幻灯切换，外加双栏共10张小型缩略图，适合做摄影或艺术作品展示。

2. BigNews &#124; Demo
2:1:1 的三栏分隔，配枪眼矩形大图，适合做图片新闻站。

3. RichBIZ &#124; Demo
仿Apple 的上下结构，放一个大面积的单品图像，下面配三枚图标，作产品宣传主页。

4. Rich Corp &#124; Demo
超大面积的第一屏幻灯展示，下面配四幅小图，见不着文字，该做啥做啥。

最后是全套12款主题的获取方法：

打开作者首页：http://richwp.com/， 里面也有全部的Demo
在“Get The Free Themes”的红框里输入姓名与邮件，发送
邮箱里会收到一封证验邮件，点击里面的链接并验证之
稍后，就会收到题为“RichWP Theme Download Links”下载地址

作者并没说此免费活动长期有效，所以需要的得赶紧，并且以后如果有升级版本的话还会继续免费发给你。等这个免费活动结束了，我再放出12款的打包下 载，社会主义分享还是应该遵守厚道。

© 我想网 Akon [...]]]></description>
			<content:encoded><![CDATA[<p>作为墙内之蛙，虽然见识不广，但我们经常能免费使用一些很极品也很昂贵的WordPress  收费主题，这很有中国特色，也正体现了社会主义互联网的优越性。</p>
<p>现在，国外一WordPress 主题制作团队——<strong>RichWP</strong>，免费放出了他们的<strong><a href="http://www.iwanna.cn/archives/2010/06/29/4271/" title="免费获得12款RichWP WordPress 收费主题">12款收费主题</a></strong>，随便下随便用。先来看看这堆主题值多少个美刀，才好让大家有性趣去下载：</p>
<ul>
<li>The Regular versions（标准版） of my themes sold for <strong>$69.90</strong></li>
<li>The PRO versions（专业版） sold for <strong>$127.00</strong></li>
<li>All Themes PRO Package（批发价） sold for <strong>$467.00</strong></li>
<li>It’s all yours for FREE!</li>
</ul>
<p><span id="more-4271"></span><br />
我大概看了一下，12款主题基本都是图片展示类的，都走类似Apple  官网的灰白简约风，布局结构多变，特别是个别主题的大幅幻灯切换，很霸气。不管大家是不是用得着，这12款都是收藏、学习、折腾、篡改之佳品，值得保存。</p>
<p>挑几款比较大气、高端、稳重、简洁又上档次的展示一下（缩略图直接引用自RichWP，效果请以实物为准）：</p>
<p><strong>1. Affiliate <a href="http://www.iwanna.cn/tags/theme/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with theme">Theme</a> | <a rel="external" href="http://richwp.com/preview/rich-affiliate/" target="_blank">Demo</a></strong></p>
<p>大幅通栏幻灯切换，外加双栏共10张小型缩略图，适合做摄影或艺术作品展示。</p>
<p><img src="http://images.uheed.com/iwanna/2010/06/29/rich-affiliate290.png" alt="" /></p>
<p><strong>2. BigNews | <a rel="external" href="http://richwp.com/preview/rich-bignews/" target="_blank">Demo</a></strong></p>
<p>2:1:1 的三栏分隔，配枪眼矩形大图，适合做图片新闻站。</p>
<p><img src="http://images.uheed.com/iwanna/2010/06/29/th_bignews_290.png" alt="" /></p>
<p><strong>3. RichBIZ | <a rel="external" href="http://richwp.com/preview/rich-biz/" target="_blank">Demo</a></strong></p>
<p>仿Apple 的上下结构，放一个大面积的单品图像，下面配三枚图标，作产品宣传主页。</p>
<p><img src="http://images.uheed.com/iwanna/2010/06/29/th_biz_290_bright.jpg" alt="" /></p>
<p><strong>4. Rich Corp | <a rel="external" href="http://richwp.com/preview/rich-corp/" target="_blank">Demo</a></strong></p>
<p>超大面积的第一屏幻灯展示，下面配四幅小图，见不着文字，该做啥做啥。</p>
<p><img src="http://images.uheed.com/iwanna/2010/06/29/th-corp290.png" alt="" /></p>
<p>最后是全套12款主题的获取方法：</p>
<ol>
<li>打开作者首页：<a rel="external" href="http://richwp.com/" target="_blank">http://richwp.com/</a>， 里面也有全部的Demo</li>
<li>在“<strong>Get The Free Themes</strong>”的红框里输入姓名与邮件，发送</li>
<li>邮箱里会收到一封证验邮件，点击里面的链接并验证之</li>
<li>稍后，就会收到题为“<strong>RichWP <a href="http://www.iwanna.cn/tags/theme/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with theme">Theme</a> Download Links</strong>”下载地址</li>
</ol>
<p>作者并没说此免费活动长期有效，所以需要的得赶紧，并且以后如果有升级版本的话还会继续免费发给你。等这个免费活动结束了，我再放出12款的打包下 载，社会主义分享还是应该遵守厚道。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/30/4271/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/30/4271/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/30/4271/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/30/4271/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/30/4271/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/theme/" title="theme" rel="tag nofollow">theme</a>, <a href="http://www.iwanna.cn/topics/develope/php/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a>, <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/07/03/4338/" title="36个最新漂亮的WordPress免费主题下载 (2010年07月3日)">36个最新漂亮的WordPress免费主题下载</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/09/4453/" title="10个迷你且清爽的免费WordPress主题 (2010年07月9日)">10个迷你且清爽的免费WordPress主题</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/24/4708/" title="10个提供免费WordPress主题下载的网站 (2010年07月24日)">10个提供免费WordPress主题下载的网站</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/31/4812/" title="10个免费的报纸及杂志题材的WordPress主题 (2010年07月31日)">10个免费的报纸及杂志题材的WordPress主题</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4071/" title="如何通过 AutoMySQLBackup 备份你的博客数据库 (2010年06月18日)">如何通过 AutoMySQLBackup 备份你的博客数据库</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4073/" title="三种直接备份 WordPress 博客数据库的方法 (2010年06月18日)">三种直接备份 WordPress 博客数据库的方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4109/" title="WordPress调用 PageCookery的方法 (2010年06月21日)">WordPress调用 PageCookery的方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/29/4255/" title="WordPress站点性能优化实战 (2010年06月29日)">WordPress站点性能优化实战</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4119/" title="WordPress模板结构及页面函数调用 (2010年06月21日)">WordPress模板结构及页面函数调用</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4067/" title="WordPress 3.0正式版发布 (2010年06月18日)">WordPress 3.0正式版发布</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/30/4271/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>前端优化之Page Flushing</title>
		<link>http://www.iwanna.cn/archives/2010/06/25/4203/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/25/4203/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 15:48:48 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[前端开发]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4203</guid>
		<description><![CDATA[Page Flushing不是啥新概念，几年前雅虎就在Best Practices  for Speeding Up Your Web Site里提过Flush the Buffer  Early，可惜我一直没太在意，不过今天在翻看Velocity  2010 Speaker Slides &#38; Video中的资料时，发现了Building  Performance Into the New Yahoo! Homepage，里面再次强调了这个问题。
Page  Flushing的目的在于让让浏览器尽可能快的得到数据，以便渲染，在PHP里有一个flush函数很有用（还有一个 ob_implicit_flush函数）：

&#60;!&#8211; css &#8211;&#62;
&#60;/head&#62;
&#60;?php flush(); ?&#62;
&#60;body&#62;
&#60;!&#8211; content &#8211;&#62;
通过在head后面放置flush，即便后面的内容还没有生成，也可以先让客户端得到头部的内容，从而尽快开始下载css数据（这里我没说js,因为从完 美角度看，js应该尽可能放在页面尾部，而不是放在head里），如此一来速度会快一些，从而改善前端的用户体验。
在head后放置flush是最常见的方法，但不便于演示，下面看看在body中使用flush的例子：
&#60;html&#62;
&#60;head&#62;
&#60;title&#62;DEMO&#60;/title&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;div&#62;hello&#60;/div&#62;
&#60;?php ob_flush(); flush(); sleep(1); ?&#62;
&#60;div&#62;world&#60;/div&#62;
&#60;?php ob_flush(); flush(); sleep(1); ?&#62;
&#60;/body&#62;
&#60;/html&#62;
注意：因为有的PHP环境会打开输出缓冲，所以上面使用了ob_flush方法排除这种情况。
使用Firefox浏览上面代码，就能看到效果了，但是如果你使用IE浏览的话，会发现无效，原因在PHP手册中对flush函数的描述里已经说得很清楚 了：
Some versions of Microsoft Internet Explorer will only start to [...]]]></description>
			<content:encoded><![CDATA[<p>Page Flushing不是啥新概念，几年前雅虎就在<a href="http://developer.yahoo.com/performance/rules.html" target="_blank">Best Practices  for Speeding Up Your Web Site</a>里提过Flush the Buffer  Early，可惜我一直没太在意，不过今天在翻看<a href="http://en.oreilly.com/velocity2010/public/schedule/proceedings" target="_blank">Velocity  2010 Speaker Slides &amp; Video</a>中的资料时，发现了<a href="http://en.oreilly.com/velocity2010/public/schedule/detail/11802" target="_blank">Building  Performance Into the New Yahoo! Homepage</a>，里面再次强调了这个问题。</p>
<p><strong><a href="http://www.iwanna.cn/archives/2010/06/25/4203/" title="前端优化之Page Flushing">Page  Flushing</a></strong>的目的在于让让浏览器尽可能快的得到数据，以便渲染，在<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>里有一个flush函数很有用（还有一个 ob_implicit_flush函数）：<br />
<span id="more-4203"></span><br />
<span style="font-family: 宋体;">&lt;!&#8211; css &#8211;&gt;<br />
&lt;/head&gt;<br />
<span style="color: #ff0000;">&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> flush(); ?&gt;</span><br />
&lt;body&gt;<br />
&lt;!&#8211; content &#8211;&gt;</span></p>
<p>通过在head后面放置flush，即便后面的内容还没有生成，也可以先让客户端得到头部的内容，从而尽快开始下载css数据（这里我没说js,因为从完 美角度看，js应该尽可能放在页面尾部，而不是放在head里），如此一来速度会快一些，从而改善前端的用户体验。</p>
<p>在head后放置flush是最常见的方法，但不便于演示，下面看看在body中使用flush的例子：</p>
<p><span style="font-family: 宋体;">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;DEMO&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;div&gt;hello&lt;/div&gt;<br />
<span style="color: #ff0000;">&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> ob_flush(); flush(); sleep(1); ?&gt;</span><br />
&lt;div&gt;world&lt;/div&gt;<br />
<span style="color: #ff0000;">&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> ob_flush(); flush(); sleep(1); ?&gt;</span><br />
&lt;/body&gt;<br />
&lt;/html&gt;</span></p>
<p>注意：因为有的<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>环境会打开输出缓冲，所以上面使用了ob_flush方法排除这种情况。</p>
<p>使用Firefox浏览上面代码，就能看到效果了，但是如果你使用IE浏览的话，会发现无效，原因在<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>手册中对flush函数的描述里已经说得很清楚 了：</p>
<p>Some versions of Microsoft Internet Explorer will only start to display  the page after they have received 256 bytes of output, so you may need  to send extra whitespace before flushing to get those browsers to  display the page.</p>
<p>也就是说 如果内容太短的话，IE会先缓冲内容，到了一定的长度再输出，如果你遇到了这个问题，可以发送空白字符来凑数。</p>
<p>最后在说一个问题：</p>
<p><span style="font-family: 宋体;">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;DEMO&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
<strong>&lt;table&gt;<br />
&lt;tr&gt;&lt;td&gt;</strong><br />
long string&#8230;<br />
<span style="color: #ff0000;">&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> ob_flush(); flush(); sleep(1); ?&gt;</span><br />
<strong>&lt;/td&gt;&lt;/tr&gt;</strong><br />
</span><span style="font-family: 宋体;"><strong>&lt;tr&gt;&lt;td&gt;</strong></span><br />
<span style="font-family: 宋体;">long string&#8230;</span><span style="font-family: 宋体;"><br />
<span style="color: #ff0000;">&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> ob_flush(); flush(); sleep(1); ?&gt;</span><br />
</span><strong><span style="font-family: 宋体;">&lt;/td&gt;&lt;/tr&gt;</span></strong><span style="font-family: 宋体;"><br />
</span><span style="font-family: 宋体;"><strong>&lt;/table&gt;</strong></span><br />
<span style="font-family: 宋体;"> &lt;/body&gt;<br />
&lt;/html&gt;</span></p>
<p>这段代码和上面的代码相比，多了一个页面级的table包裹，如果这样设计话的，即便使用了flush，但由于table标签标签未闭合，所以浏览器不会 立即开始渲染，必须等到table标签闭合才可以，如此一来，flush就无意义了，不过经过测试，我发现似乎只有IE有这个问题，Firefox不受影 响，但不管怎么说，在使用Page Flushing技术的时候，还是应该尽可能避免页面级别的元素包裹，把内容打散，多多使用flush。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/25/4203/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/25/4203/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/25/4203/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/25/4203/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/25/4203/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/topics/develope/php/" title="PHP" rel="tag nofollow">PHP</a>, <a href="http://www.iwanna.cn/tags/php/" title="PHP" rel="tag nofollow">PHP</a>, <a href="http://www.iwanna.cn/tags/web/" title="Web" rel="tag nofollow">Web</a>, <a href="http://www.iwanna.cn/topics/ui/web-ui/" title="WEB" rel="tag nofollow">WEB</a>, <a href="http://www.iwanna.cn/topics/ui/" title="前端开发" rel="tag nofollow">前端开发</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/01/29/2479/" title="默认Web字体样式 (2010年01月29日)">默认Web字体样式</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/18/3223/" title="页面元素的两种表达状态：常态，暂态 (2010年05月18日)">页面元素的两种表达状态：常态，暂态</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/20/4642/" title="迈过社会化网络：互联网的新时代 (2010年07月20日)">迈过社会化网络：互联网的新时代</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/02/149/" title="设计模式之单例模式 (2009年04月2日)">设计模式之单例模式</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/07/2961/" title="设计中的色彩：黑色 (2010年05月7日)">设计中的色彩：黑色</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/07/2959/" title="设计中的色彩：白色 (2010年05月7日)">设计中的色彩：白色</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/07/31/2088/" title="论述PHP开发框架: What, When, Why and Which? (2009年07月31日)">论述PHP开发框架: What, When, Why and Which?</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/23/4157/" title="解码 Web 开发语言 (2010年06月23日)">解码 Web 开发语言</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/06/03/1680/" title="苹果 vs. 微软 &#8211; 网站可用性研究 (2009年06月3日)">苹果 vs. 微软 &#8211; 网站可用性研究</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/08/3767/" title="腾讯PHP程序员面试题目 (2010年06月8日)">腾讯PHP程序员面试题目</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/25/4203/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>4款WordPress图片缩放插件</title>
		<link>http://www.iwanna.cn/archives/2010/06/24/4181/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/24/4181/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 14:51:01 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4181</guid>
		<description><![CDATA[今天推荐4款WordPress的图片缩放插件，大家都知道有时候需要插入的图片较大，会拖延网页加载，并打乱文章排版。所以有必要来几个这样的插件，当然凭自己的喜好，有复杂型的也有简 洁型的。这四款插件分别是Lightbox、Highslide，Shadowbox，还有我现在用的WP FancyZoom。
WP FancyZoom
这个就是我博客现在用的，感觉很不错，属于轻量型的。效果也十分漂亮，很有苹果中图标的感觉。使用非常方便，直接到后台搜素这个插件，安装即可。当然如果 你属于不喜欢插件的人，可以到这里看看不用插件的方法。我嫌麻烦，直接插件之。


点击上图，现场体验使用效果。
Lightbox
这个是我第一个用过的，也是最常见的，很多地方用的都是这个效果。下面是官方的说明，因为不好截图，自己的描绘能力实在有限，就只好引用官方的了。
Lightbox”是一个别致且易用的图片显示效果，它可以使图片直接呈现在当前页面之上而不用转到新的窗口。
类似于WinXP操作系统的注销/关机对话框，除去屏幕中心位置的对话框，其他的区域都以淡出的效果逐渐变为银灰色以增加对比度，此时除了对话框内的表单 控件，没有其他区域可以获取焦点。
这里推荐一个介绍该插件的地方，点击这里。如果失效，可以自己Google一下。同样下载方法。
Shadowbox
这个是在A-shun那里看到的，觉得和Lightbox感觉差不多，Shadowbox  对各种浏览器的兼容性也较好，支持图片、视频、网页、flash、FLV等媒体。这里就不多说了，如果想了解效果和功能以及使用的方法，可以到A-shun那里去看看，肯定要比我写的好。
Highslide
这个和第一个一样，同样属于简洁型的，就看自己的口味了，这是兽兽改进的。Lightbox 2 启动后占用的 JS 文件大小高达  200KB，而 Auto HighSlide 插件启动后占用的 JS 文件只有 32 KB，一个 CSS 只有  4KB，属于轻量级的插件。如果感兴趣就到作者那里看看，这里就不演示了。
最后，这些都是给爱折腾的人用的，如果你喜欢简单点，这些插件肯定没啥用，但如果你是个爱酷的人，这些插件用起来感觉是很不错的。

© 我想网 Akon 所有 , 2010. &#124;
永久链接 &#124;
2 条评论 &#124;
提交到
Google Reader
鲜果
抓虾


	标签：Plugin, Plugin, Wordpress, Wordpress

	您可能会感兴趣的其他文章
	
	淘宝开源编辑器 KISSY Editor 
	推荐8个独特应用的JQuery拖放插件 
	排名前7位的 Wordpress 404 插件 
	如何通过 AutoMySQLBackup 备份你的博客数据库 
	如何给WordPress站点添加文章投递功能 
	免费获得12款RichWP WordPress 收费主题 
	三种直接备份 WordPress 博客数据库的方法 [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="WordPress" src="http://images.uheed.com/iwanna/2010/06/24/wp.gif" alt="" width="88" height="88" />今天推荐<strong><a title="4款WordPress图片缩放插件" href="http://www.iwanna.cn/archives/2010/06/24/4181/">4款WordPress的图片缩放插件</a></strong>，大家都知道有时候需要插入的图片较大，会拖延网页加载，并打乱文章排版。所以有必要来几个这样的插件，当然凭自己的喜好，有复杂型的也有简 洁型的。这四款插件分别是Lightbox、Highslide，Shadowbox，还有我现在用的WP FancyZoom。</p>
<h3>WP FancyZoom</h3>
<p>这个就是我博客现在用的，感觉很不错，属于轻量型的。效果也十分漂亮，很有苹果中图标的感觉。使用非常方便，直接到后台搜素这个插件，安装即可。当然如果 你属于不喜欢插件的人，可以到<a href="http://wordpress.org.cn/thread-62326-1-1.html" target="_blank">这里看看</a>不用插件的方法。我嫌麻烦，直接插件之。</p>
<p><a href="http://images.uheed.com/iwanna/2010/06/24/2007031605033020704.jpg"><img title="印象" src="http://images.uheed.com/iwanna/2010/06/24/2007031605033020704-300x232.jpg" alt="" width="300" height="232" /></a><br />
<span id="more-4181"></span><br />
点击上图，现场体验使用效果。</p>
<h3>Lightbox</h3>
<p>这个是我第一个用过的，也是最常见的，很多地方用的都是这个效果。下面是官方的说明，因为不好截图，自己的描绘能力实在有限，就只好引用官方的了。</p>
<blockquote><p>Lightbox”是一个别致且易用的图片显示效果，它可以使图片直接呈现在当前页面之上而不用转到新的窗口。<br />
类似于WinXP操作系统的注销/关机对话框，除去屏幕中心位置的对话框，其他的区域都以淡出的效果逐渐变为银灰色以增加对比度，此时除了对话框内的表单 控件，没有其他区域可以获取焦点。</p></blockquote>
<p>这里推荐一个介绍该插件的地方，<a href="http://zyxhome.org/wp/network/web/wp/using-lightbox-wp/" target="_blank">点击这里</a>。如果失效，可以自己Google一下。同样下载方法。</p>
<h3>Shadowbox</h3>
<p>这个是在A-shun那里看到的，觉得和Lightbox感觉差不多，Shadowbox  对各种浏览器的兼容性也较好，支持图片、视频、网页、flash、FLV等媒体。这里就不多说了，如果想了解效果和功能以及使用的方法，可以到<a href="http://www.a-shun.com/archives/21365.html" target="_blank">A-shun那里</a>去看看，肯定要比我写的好。</p>
<h3>Highslide</h3>
<p>这个和第一个一样，同样属于简洁型的，就看自己的口味了，这是兽兽改进的。Lightbox 2 启动后占用的 JS 文件大小高达  200KB，而 Auto HighSlide 插件启动后占用的 JS 文件只有 32 KB，一个 CSS 只有  4KB，属于轻量级的插件。如果感兴趣就到<a href="http://zou.lu/auto-hishslide-wordpress-plugin/" target="_blank">作者那里看看</a>，这里就不演示了。</p>
<p>最后，这些都是给爱折腾的人用的，如果你喜欢简单点，这些插件肯定没啥用，但如果你是个爱酷的人，这些插件用起来感觉是很不错的。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/24/4181/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/24/4181/#comments">2 条评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/24/4181/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/24/4181/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/24/4181/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/tags/plugin/" title="Plugin" rel="tag nofollow">Plugin</a>, <a href="http://www.iwanna.cn/topics/develope/plugin-develope/" title="Plugin" rel="tag nofollow">Plugin</a>, <a href="http://www.iwanna.cn/topics/develope/php/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a>, <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2009/10/28/2341/" title="淘宝开源编辑器 KISSY Editor (2009年10月28日)">淘宝开源编辑器 KISSY Editor</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/11/4460/" title="推荐8个独特应用的JQuery拖放插件 (2010年07月11日)">推荐8个独特应用的JQuery拖放插件</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/13/3113/" title="排名前7位的 Wordpress 404 插件 (2010年05月13日)">排名前7位的 Wordpress 404 插件</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4071/" title="如何通过 AutoMySQLBackup 备份你的博客数据库 (2010年06月18日)">如何通过 AutoMySQLBackup 备份你的博客数据库</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/22/3288/" title="如何给WordPress站点添加文章投递功能 (2010年05月22日)">如何给WordPress站点添加文章投递功能</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/30/4271/" title="免费获得12款RichWP WordPress 收费主题 (2010年06月30日)">免费获得12款RichWP WordPress 收费主题</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4073/" title="三种直接备份 WordPress 博客数据库的方法 (2010年06月18日)">三种直接备份 WordPress 博客数据库的方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4109/" title="WordPress调用 PageCookery的方法 (2010年06月21日)">WordPress调用 PageCookery的方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/29/4255/" title="WordPress站点性能优化实战 (2010年06月29日)">WordPress站点性能优化实战</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4119/" title="WordPress模板结构及页面函数调用 (2010年06月21日)">WordPress模板结构及页面函数调用</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/24/4181/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress模板结构及页面函数调用</title>
		<link>http://www.iwanna.cn/archives/2010/06/21/4119/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/21/4119/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 13:57:28 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4119</guid>
		<description><![CDATA[先说今天遇到的一个问题，
我在wordpress模板目录下新建了一个PHP文件，service.php，想要调用&#60;?php get_footer();  ?&#62;函数，得到反馈结果
Fatal error: Call to undefined function get_footer() in D:\web\blog\wp-content\themes\bettersun\service.php on line 73
查了一下解决办法是在该页面头部引入：
require_once(&#8217;site/wp-config.php&#8217;);
另外，翻到一些常用的wordpress模板结构及页面函数调用参数，以备后需：


模板常用的PHP函数及命令
&#60;?php the_tags(); ?&#62; ;  调用文章标签
&#60;?php  get_header(); ?&#62; : 调用Header.php
&#60;?php get_sidebar(); ?&#62; : 调用Sidebar.php
&#60;?php get_footer(); ?&#62; : 调用Footer.php
&#60;?php the_content(); ?&#62;  : 显示内容(Post/Page)
&#60;?php if(have_posts()) : ?&#62; : 检查是否存在Post/Page
&#60;?php while(have_posts()) : the_post(); ?&#62; : 如果存在Post/Page则予以显示
&#60;?php endwhile; ?&#62; : While 结束
&#60;?php endif; [...]]]></description>
			<content:encoded><![CDATA[<p>先说今天遇到的一个问题，<br />
我在wordpress模板目录下新建了一个<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>文件，service.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>，想要调用&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> get_footer();  ?&gt;函数，得到反馈结果<br />
Fatal error: Call to undefined function get_footer() in D:\web\blog\wp-content\themes\bettersun\service.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> on line 73<br />
查了一下解决办法是在该页面头部引入：<br />
require_once(&#8217;site/wp-config.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>&#8217;);<br />
另外，翻到一些常用的wordpress模板结构及页面函数调用参数，以备后需：<br />
<span id="more-4119"></span><br />
<a href="http://images.uheed.com/iwanna/2010/06/21/wordpress-php.gif"><img src="http://images.uheed.com/iwanna/2010/06/21/wordpress-php-500x398.gif" alt="wordpress-php" width="500" height="398" /></a></p>
<p><strong>模板常用的<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>函数及命令</strong></p>
<p>&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> the_tags(); ?&gt; ;  调用文章标签<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>  get_header(); ?&gt; : 调用Header.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a><br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> get_sidebar(); ?&gt; : 调用Sidebar.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a><br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> get_footer(); ?&gt; : 调用Footer.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a><br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> the_content(); ?&gt;  : 显示内容(Post/Page)<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> if(have_posts()) : ?&gt; : 检查是否存在Post/Page<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> while(have_posts()) : the_post(); ?&gt; : 如果存在Post/Page则予以显示<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> endwhile; ?&gt; : While 结束<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> endif; ?&gt; : If 结束<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> the_time(’字符串’) ?&gt; : 显示时间，时间格式由“字符串”参数决定<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>  comments_popup_link(); ?&gt; : 正文中的留言链接。如果使用  comments_popup_script()  ，则留言会在新窗口中打开<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> the_title(); ?&gt; : 内容页(Post/Page)标题<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> the_permalink() ?&gt; : 内容页(Post/Page) Url<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>  the_category(’, ‘) ?&gt; : 特定内容页(Post/Page)所属Category<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> the_author();  ?&gt; : 作者<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> the_ID(); ?&gt; : 特定内容页(Post/Page) ID<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>  edit_post_link(); ?&gt; : 如果用户已登录并具有权限，显示编辑链接<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> get_links_list();  ?&gt; : 显示Blogroll中的链接<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> comments_template(); ?&gt; : 调用留言/回复模板<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> wp_list_pages(); ?&gt; : 显示Page列表<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>  wp_list_categories(); ?&gt; : 显示Categories列表<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> next_post_link(’ %link  ‘); ?&gt; : 下一篇文章链接<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> previous_post_link(’%link’); ?&gt; : 上一篇文章链接<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> get_calendar(); ?&gt; : 日历<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> wp_get_archives() ?&gt; :  显示内容存档<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> posts_nav_link(); ?&gt; : 导航，显示上一篇/下一篇文章链接<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>  include(TEMPLATEPATH . ‘/文件名’); ?&gt; :  嵌入其他文件，可为定制的模板或其他类型文件</p>
<p><strong>基本条件判断Tag<br />
</strong><br />
is_home() : 是否为主页<br />
is_single() :  是否为内容页(Post)<br />
is_page() : 是否为内容页(Page)<br />
is_category() :  是否为Category/Archive页<br />
is_tag() : 是否为Tag存档页<br />
is_date() : 是否为指定日期存档页<br />
is_year() : 是否为指定年份存档页<br />
is_month() : 是否为指定月份存档页<br />
is_day() : 是否为指定日存档页<br />
is_time() : 是否为指定时间存档页<br />
is_archive() : 是否为存档页<br />
is_search() : 是否为搜索结果页<br />
is_404() : 是否为 “HTTP 404: Not Found” 错误页<br />
is_paged() :  主页/Category/Archive页是否以多页显示</p>
<p><strong>Header部分常用到的<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>函数</strong></p>
<p>&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>  bloginfo(’name’); ?&gt; : 博客名称(Title)<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> bloginfo(’stylesheet_url’);  ?&gt; : CSS文件路径<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> bloginfo(’pingback_url’); ?&gt; : PingBack Url<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> bloginfo(’template_url’); ?&gt; : 模板文件路径<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>  bloginfo(’version’); ?&gt; : WordPress版本<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> bloginfo(’atom_url’);  ?&gt; : Atom Url<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> bloginfo(’rss2_url’); ?&gt; : RSS 2.o Url<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> bloginfo(’url’); ?&gt; : 博客 Url<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> bloginfo(’html_type’);  ?&gt; : 博客网页Html类型<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> bloginfo(’charset’); ?&gt; : 博客网页编码<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>  bloginfo(’description’); ?&gt; : 博客描述<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> wp_title(); ?&gt; :  特定内容页(Post/Page)的标题</p>
<p><strong> </strong></p>
<p><strong>与模板相关的其他函数</strong></p>
<p>&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>  _e(’Message’); ?&gt; : 输出相应信息<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> wp_register(); ?&gt; : 显示注册链接<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> wp_loginout(); ?&gt; : 显示登录/注销链接<br />
&lt;!–next page–&gt; : 将当前内容分页<br />
&lt;!–more–&gt; : 将当前内容截断，以不在主页/目录页显示全部内容<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> timer_stop(1); ?&gt;  : 网页加载时间(秒)<br />
&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a> echo get_num_queries(); ?&gt; : 网页加载查询量</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/21/4119/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/21/4119/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/21/4119/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/21/4119/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/21/4119/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/topics/develope/php/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a>, <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4071/" title="如何通过 AutoMySQLBackup 备份你的博客数据库 (2010年06月18日)">如何通过 AutoMySQLBackup 备份你的博客数据库</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/30/4271/" title="免费获得12款RichWP WordPress 收费主题 (2010年06月30日)">免费获得12款RichWP WordPress 收费主题</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4073/" title="三种直接备份 WordPress 博客数据库的方法 (2010年06月18日)">三种直接备份 WordPress 博客数据库的方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4109/" title="WordPress调用 PageCookery的方法 (2010年06月21日)">WordPress调用 PageCookery的方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/29/4255/" title="WordPress站点性能优化实战 (2010年06月29日)">WordPress站点性能优化实战</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4067/" title="WordPress 3.0正式版发布 (2010年06月18日)">WordPress 3.0正式版发布</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/24/4181/" title="4款WordPress图片缩放插件 (2010年06月24日)">4款WordPress图片缩放插件</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/03/4338/" title="36个最新漂亮的WordPress免费主题下载 (2010年07月3日)">36个最新漂亮的WordPress免费主题下载</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/09/4453/" title="10个迷你且清爽的免费WordPress主题 (2010年07月9日)">10个迷你且清爽的免费WordPress主题</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/04/4340/" title="10个提高WordPress安全性的小诀窍 (2010年07月4日)">10个提高WordPress安全性的小诀窍</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/21/4119/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress调用 PageCookery的方法</title>
		<link>http://www.iwanna.cn/archives/2010/06/21/4109/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/21/4109/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 13:37:46 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4109</guid>
		<description><![CDATA[PageCookery是由explon开发的一套微博客系统，采用Php+Mysql架构而成，详细介绍及演示可参考他们的官方网站，这里言归正传，分享一下如何在wordpress中调用PageCookery的内容。


&#60;?php
require_once (ABSPATH . WPINC . &#8216;/class-feed.php&#8217;);
$feed = new SimplePie();
$feed-&#62;set_feed_url(&#8216;http://uicss.cn/talk/rss.xml&#8217;);
$feed-&#62;set_file_class(&#8216;WP_SimplePie_File&#8217;);
$feed-&#62;set_cache_duration(3700);
$feed-&#62;init();
$feed-&#62;handle_content_type();
$items = $feed-&#62;get_items(0,1);
foreach($items as $item) {
echo $item-&#62;get_description();
}
?&#62;

如上所示，我们主要应用WordPress的fetch_feed函数来读取微博客RSS的内容，只 需要将该代码插入到你的wordpress模板中即可。其中，set_cache_duration(3700);  的意思是3700秒读取一次rss，看是否有更新；get_items(0,1)的目的是控制显示多少条微博。echo后面跟的是希望显示的内容，如果希 望以列表模式显示，并列出微博客发布的时间，可以将源代码对应echo的部分修改为

echo  &#8216;&#60;li&#62;&#8217;.$item-&#62;get_description().&#8217;&#60;br /&#62;&#8217;.'&#60;a  href=&#8221;http://uicss.cn/talk/&#8221;&#62;&#8217;.$item-&#62;get_date(&#8216;Y-m-j  G:i&#8217;).&#8217;&#60;/a&#62;&#8217;.'&#60;/li&#62;&#8217;;

完成如上操作后，可以调整样式表，改为自己喜欢的排版模式。
如果对所显示的内容不满意，可以到PageCookery的对应目录中修改cron/rss_update.php文件，来变更RSS显示的内容。

© 我想网 Akon 所有 , 2010. &#124;
永久链接 &#124;
没有评论 &#124;
提交到
Google Reader
鲜果
抓虾


	标签：Wordpress, Wordpress

	您可能会感兴趣的其他文章
	
	如何通过 AutoMySQLBackup 备份你的博客数据库 
	免费获得12款RichWP WordPress 收费主题 
	三种直接备份 WordPress 博客数据库的方法 
	WordPress站点性能优化实战 
	WordPress模板结构及页面函数调用 
	WordPress 3.0正式版发布 
	4款WordPress图片缩放插件 
	36个最新漂亮的WordPress免费主题下载 
	10个迷你且清爽的免费WordPress主题 
	10个提高WordPress安全性的小诀窍 



Feed enhanced by Better Feed from  Ozh
]]></description>
			<content:encoded><![CDATA[<p>PageCookery是由explon开发的一套微博客系统，采用<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">Php</a>+Mysql架构而成，详细介绍及演示可参考他们的<a rel="external  nofollow" href="http://uicss.cn/go.php?http://www.pagecookery.com/">官方网站</a>，这里言归正传，分享一下如何在wordpress中调用PageCookery的内容。<br />
<span id="more-4109"></span></p>
<ol title="Double click  to hide line number." ondblclick="linenumber(this)">
<li>&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a></li>
<li>require_once (ABSPATH . WPINC . &#8216;/class-feed.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>&#8217;);</li>
<li>$feed = new SimplePie();</li>
<li>$feed-&gt;set_feed_url(&#8216;http://uicss.cn/talk/rss.xml&#8217;);</li>
<li>$feed-&gt;set_file_class(&#8216;WP_SimplePie_File&#8217;);</li>
<li>$feed-&gt;set_cache_duration(3700);</li>
<li>$feed-&gt;init();</li>
<li>$feed-&gt;handle_content_type();</li>
<li>$items = $feed-&gt;get_items(0,1);</li>
<li>foreach($items as $item) {</li>
<li>echo $item-&gt;get_description();</li>
<li>}</li>
<li>?&gt;</li>
</ol>
<p>如上所示，我们主要应用WordPress的<a rel="external nofollow" href="http://uicss.cn/go.php?http://codex.wordpress.org/Function_Reference/fetch_feed">fetch_feed</a>函数来读取微博客RSS的内容，只 需要将该代码插入到你的wordpress模板中即可。其中，set_cache_duration(3700);  的意思是3700秒读取一次rss，看是否有更新；get_items(0,1)的目的是控制显示多少条微博。echo后面跟的是希望显示的内容，如果希 望以列表模式显示，并列出微博客发布的时间，可以将源代码对应echo的部分修改为</p>
<div>
<div>echo  &#8216;&lt;li&gt;&#8217;.$item-&gt;get_description().&#8217;&lt;br /&gt;&#8217;.'&lt;a  href=&#8221;http://uicss.cn/talk/&#8221;&gt;&#8217;.$item-&gt;get_date(&#8216;Y-m-j  G:i&#8217;).&#8217;&lt;/a&gt;&#8217;.'&lt;/li&gt;&#8217;;</div>
</div>
<p>完成如上操作后，可以调整样式表，改为自己喜欢的排版模式。<br />
如果对所显示的内容不满意，可以到PageCookery的对应目录中修改cron/rss_update.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>文件，来变更RSS显示的内容。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/21/4109/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/21/4109/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/21/4109/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/21/4109/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/21/4109/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/topics/develope/php/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a>, <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4071/" title="如何通过 AutoMySQLBackup 备份你的博客数据库 (2010年06月18日)">如何通过 AutoMySQLBackup 备份你的博客数据库</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/30/4271/" title="免费获得12款RichWP WordPress 收费主题 (2010年06月30日)">免费获得12款RichWP WordPress 收费主题</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4073/" title="三种直接备份 WordPress 博客数据库的方法 (2010年06月18日)">三种直接备份 WordPress 博客数据库的方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/29/4255/" title="WordPress站点性能优化实战 (2010年06月29日)">WordPress站点性能优化实战</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4119/" title="WordPress模板结构及页面函数调用 (2010年06月21日)">WordPress模板结构及页面函数调用</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4067/" title="WordPress 3.0正式版发布 (2010年06月18日)">WordPress 3.0正式版发布</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/24/4181/" title="4款WordPress图片缩放插件 (2010年06月24日)">4款WordPress图片缩放插件</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/03/4338/" title="36个最新漂亮的WordPress免费主题下载 (2010年07月3日)">36个最新漂亮的WordPress免费主题下载</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/09/4453/" title="10个迷你且清爽的免费WordPress主题 (2010年07月9日)">10个迷你且清爽的免费WordPress主题</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/04/4340/" title="10个提高WordPress安全性的小诀窍 (2010年07月4日)">10个提高WordPress安全性的小诀窍</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/21/4109/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>深入理解PHP之匿名函数</title>
		<link>http://www.iwanna.cn/archives/2010/06/20/4102/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/20/4102/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 15:18:57 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/archives/2010/06/20/4102/</guid>
		<description><![CDATA[PHP中, 传递Callback的方式, 一直很丑陋. 在PHP5.3以前, 我们只有俩种选择:
1. 字符串的函数名
2. 使用create_function的返回值

在PHP5.3以后, 我们多了一个选择, 也就是Closure,
$func = function () { ... };
array_walk($func, $arr);

从实现上来说, 第一种方式: 传递函数名字符串是最简单的.

而第二种方式create_function, 其实和第一种方式本质上一样的, create_function返回一个字符串的函数名,  这个函数名的格式是:
"\000_lambda_" . count(anonymous_functions)++;

我们来看看create_function的实现步骤:
1. 获取参数, 函数体
2. 拼凑一个"function __lambda_func (参数) { 函数体;} "的字符串
3. eval之
4. 通过__lambda_func在函数表中找到eval后得到的函数体, 找不到就出错
5. 定义一个函数名:"\000_lambda_" . count(anonymous_functions)++
6. 用新的函数名替换__lambda_func
7. 返回新的函数名

我们来验证下:
&#60;?php
create_function("", 'echo __FUNCTION__;');
call_user_func("\000lambda_1", 1);
?&#62;
//输出
__lambda_func

因为在eval的时候, 函数名是”__lambda_func”, 所以匿名函数内会输出__lambda_func,  而因为最后用”\000_lambda_” .  count(anonymous_functions)++重命名了函数表中的”__lambda_func”函数,  所以可通过”\000_lambda_” . count(anonymous_functions)++调用这个匿名函数.
为了证实这一点, 可以将create_function的返回值dump出来查看.
而在PHP5.3发布的时候, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>中, 传递Callback的方式, 一直很丑陋. 在PHP5.3以前, 我们只有俩种选择:</p>
<pre>1. 字符串的函数名
2. 使用create_function的返回值
</pre>
<p>在PHP5.3以后, 我们多了一个选择, 也就是Closure,</p>
<pre>$func = function () { ... };
array_walk($func, $arr);
</pre>
<p>从实现上来说, 第一种方式: 传递函数名字符串是最简单的.<br />
<span id="more-4102"></span><br />
而第二种方式create_function, 其实和第一种方式本质上一样的, create_function返回一个字符串的函数名,  这个函数名的格式是:</p>
<pre>"\000_lambda_" . count(anonymous_functions)++;
</pre>
<p>我们来看看create_function的实现步骤:</p>
<pre>1. 获取参数, 函数体
2. 拼凑一个"function __lambda_func (参数) { 函数体;} "的字符串
3. eval之
4. 通过__lambda_func在函数表中找到eval后得到的函数体, 找不到就出错
5. 定义一个函数名:"\000_lambda_" . count(anonymous_functions)++
6. 用新的函数名替换__lambda_func
7. 返回新的函数名
</pre>
<p>我们来验证下:</p>
<pre>&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>
create_function("", 'echo __FUNCTION__;');
call_user_func("\000lambda_1", 1);
?&gt;
//输出
__lambda_func
</pre>
<p>因为在eval的时候, 函数名是”__lambda_func”, 所以匿名函数内会输出__lambda_func,  而因为最后用”\000_lambda_” .  count(anonymous_functions)++重命名了函数表中的”__lambda_func”函数,  所以可通过”\000_lambda_” . count(anonymous_functions)++调用这个匿名函数.</p>
<p>为了证实这一点, 可以将create_function的返回值dump出来查看.</p>
<p>而在PHP5.3发布的时候, 其中有一条new feature就是支持闭包/Lambda Function,  我第一反应是以为zval新增了一个IS_FUNCTION, 但实际上是构造了一个PHP5.3引入的Closure”类”的实例,  Closure类的构造函数是私有的, 所以不能被直接实例化, 另外Closure类是Final类, 所以也不能做为基类派生子类.</p>
<pre>//<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>-5.3.0
$class = new ReflectionClass("Closure");
var_dump($class-&gt;isInternal());
var_dump($class-&gt;isAbstract() );
var_dump($class-&gt;isFinal());
var_dump($class-&gt;isInterface());
//输出:
bool(true)
bool(false)
bool(true)
bool(false)
?&gt;
	而PHP5.3中对闭包的支持, 也仅仅是把要保持的外部变量, 做为Closure对象的Static属性.
&lt;coolcode lang="<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>" linenum="off&gt;
//<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a>-5.3.0
$b = "laruence";
$func = function($a) use($b) {};
var_dump($func);
/* 输出:
object(Closure)#1 (2) {
  ["static"]=&gt;
  array(1) {
    ["b"]=&gt;
    string(8) "laruence"
  }
  ["parameter"]=&gt;
  array(1) {
    ["$a"]=&gt;
    string(10) "&lt;required&gt;"
  }
}
*/
</pre>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/20/4102/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/20/4102/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/20/4102/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/20/4102/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/20/4102/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/topics/develope/php/" title="PHP" rel="tag nofollow">PHP</a>, <a href="http://www.iwanna.cn/tags/php/" title="PHP" rel="tag nofollow">PHP</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2009/04/02/149/" title="设计模式之单例模式 (2009年04月2日)">设计模式之单例模式</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/07/31/2088/" title="论述PHP开发框架: What, When, Why and Which? (2009年07月31日)">论述PHP开发框架: What, When, Why and Which?</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/08/3767/" title="腾讯PHP程序员面试题目 (2010年06月8日)">腾讯PHP程序员面试题目</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/03/171/" title="简易Wordpress模板代码帮助手册中文版 (2009年04月3日)">简易Wordpress模板代码帮助手册中文版</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/08/3769/" title="用PHP数组对百万数据进行排重 (2010年06月8日)">用PHP数组对百万数据进行排重</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/07/05/1933/" title="用 PHP 读取和编写 XML DOM (2009年07月5日)">用 PHP 读取和编写 XML DOM</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/08/20/2171/" title="最快的 PHP 模板引擎 Blitz Templates (2009年08月20日)">最快的 PHP 模板引擎 Blitz Templates</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/08/24/2193/" title="开发者不可不知的PHP框架深度解析 (2009年08月24日)">开发者不可不知的PHP框架深度解析</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/05/26/3396/" title="实用PHP技巧：万能Cache (2010年05月26日)">实用PHP技巧：万能Cache</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/17/484/" title="大型网站调试工具之一（php性能优化分析工具XDebug） (2009年04月17日)">大型网站调试工具之一（php性能优化分析工具XDebug）</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/20/4102/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>三种直接备份 WordPress 博客数据库的方法</title>
		<link>http://www.iwanna.cn/archives/2010/06/18/4073/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/18/4073/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 14:44:40 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4073</guid>
		<description><![CDATA[自从上次由于没有成功备份导致博客的大部分文章无法还原之后，我就更加小心博客的备份了，并且还尝试了多种的备份方法，以下是其中三种直接备份 WordPress 博客的方法。
所谓直接备份，是指不需要借助于 WordPress 插件、第三方服务或者程序代码，而直接通过 WordPress 后台或者 cPanel 备份，这样的备份方法是最安全的，只不过需要手动。
方法一：通过 WordPress 后台备份博客数据库


进入 WordPress  后台，点击“工具”选项下面的“导出”，然后在出现的页面点击“下载导出文件”就可以了。如果你的博客有多个作者，你还可以选择导出某一个作者的相关文 件。导出文件包括对应作者的全部文章、页面、评论、自定义域、分类目录和标签，但是不包括 WordPress  插件和小工具的设置。如果要备份插件和小工具的设置，则可以通过虚拟主机空间的 cPanel 控制面板来备份 WordPress 博客数据库：
方法二：通过 cPanel 备份博客数据库

进入 cPanel 之后，点击“文件”分类里面的“备份”，在出现页面的“部分备份”下面，选择需要备份的博客对应的 MySQL  数据库并下载。
除了通过 cPanel 的文件备份功能之外，你也可以通过 phpMyAdmin 的导出功能进行 WordPress 博客的数据库备份：
方法三：通过 phpMyAdmin 备份博客数据库

点击 cPanel “数据库” 分类下面的  “phpMyAdmin”，在出现的页面点击博客对应的数据库，然后点击工具栏上的“导出”，并在下一页面的“另存为文件”一栏下面选择“gzip压 缩”，然后点击“执行”，就可以把数据库下载到你的电脑硬盘了。
通常情况下我会选择第二种方法备份 WordPress  博客的数据库，因为备份的数据比第一种方法要全面，而速度则比第三种方法要快。不过，如果只是要把一个 WordPress 博客的文章转移到另外一个  WordPress 博客上，那么就用第一种方法。你是通过哪一种方法备份 WordPress 博客数据库的呢？如果你还有其他的备份方法，欢迎分享。

© 我想网 Akon [...]]]></description>
			<content:encoded><![CDATA[<p>自从上次由于没有成功备份导致博客的大部分文章无法还原之后，我就更加小心博客的备份了，并且还尝试了多种的备份方法，以下是其中三种直接备份 WordPress 博客的方法。</p>
<p>所谓<strong><a href="http://www.iwanna.cn/archives/2010/06/18/4073/" title="三种直接备份 WordPress 博客数据库的方法">直接备份</a></strong>，是指不需要借助于 WordPress 插件、第三方服务或者程序代码，而直接通过 WordPress 后台或者 cPanel 备份，这样的备份方法是最安全的，只不过需要手动。</p>
<p><strong>方法一：通过 WordPress 后台备份博客数据库</strong></p>
<p><img title="wordpress-export" src="http://images.uheed.com/iwanna/2010/06/18/wordpress-export.jpg" alt="备份 WordPress 博客数据库" width="540px" height="285px" /><br />
<span id="more-4073"></span><br />
进入 WordPress  后台，点击“工具”选项下面的“导出”，然后在出现的页面点击“下载导出文件”就可以了。如果你的博客有多个作者，你还可以选择导出某一个作者的相关文 件。导出文件包括对应作者的全部文章、页面、评论、自定义域、分类目录和标签，但是不包括 WordPress  插件和小工具的设置。如果要备份插件和小工具的设置，则可以通过虚拟主机空间的 cPanel 控制面板来备份 WordPress 博客数据库：</p>
<p><strong>方法二：通过 cPanel 备份博客数据库</strong></p>
<p><img title="cpanel-backup" src="http://images.uheed.com/iwanna/2010/06/18/cpanel-backup.jpg" alt="备份 WordPress 博客数据库" width="539px" height="225px" /></p>
<p>进入 cPanel 之后，点击“文件”分类里面的“备份”，在出现页面的“部分备份”下面，选择需要备份的博客对应的 MySQL  数据库并下载。</p>
<p>除了通过 cPanel 的文件备份功能之外，你也可以通过 phpMyAdmin 的导出功能进行 WordPress 博客的数据库备份：</p>
<p><strong>方法三：通过 phpMyAdmin 备份博客数据库</strong></p>
<p><img title="phpmyadmin-backup" src="http://images.uheed.com/iwanna/2010/06/18/phpmyadmin-backup.jpg" alt="备份 WordPress 博客数据库" width="540px" height="196px" /></p>
<p>点击 cPanel “数据库” 分类下面的  “phpMyAdmin”，在出现的页面点击博客对应的数据库，然后点击工具栏上的“导出”，并在下一页面的“另存为文件”一栏下面选择“gzip压 缩”，然后点击“执行”，就可以把数据库下载到你的电脑硬盘了。</p>
<p>通常情况下我会选择第二种方法备份 WordPress  博客的数据库，因为备份的数据比第一种方法要全面，而速度则比第三种方法要快。不过，如果只是要把一个 WordPress 博客的文章转移到另外一个  WordPress 博客上，那么就用第一种方法。你是通过哪一种方法备份 WordPress 博客数据库的呢？如果你还有其他的备份方法，欢迎分享。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/18/4073/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/18/4073/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/18/4073/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/18/4073/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/18/4073/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/topics/develope/db/" title="Database" rel="tag nofollow">Database</a>, <a href="http://www.iwanna.cn/tags/db/" title="Database" rel="tag nofollow">Database</a>, <a href="http://www.iwanna.cn/topics/develope/php/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a>, <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4071/" title="如何通过 AutoMySQLBackup 备份你的博客数据库 (2010年06月18日)">如何通过 AutoMySQLBackup 备份你的博客数据库</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4069/" title="10 大免费 WordPress 博客数据库备份插件 (2010年06月18日)">10 大免费 WordPress 博客数据库备份插件</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4123/" title="盘点2010年十大数据库漏洞 (2010年06月21日)">盘点2010年十大数据库漏洞</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/04/18/2765/" title="数据库备份存储过程 [SQL Server 2005] (2010年04月18日)">数据库备份存储过程 [SQL Server 2005]</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/21/4658/" title="因为垄断形成，数据库市场将出现更多开源数据库 (2010年07月21日)">因为垄断形成，数据库市场将出现更多开源数据库</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/30/4271/" title="免费获得12款RichWP WordPress 收费主题 (2010年06月30日)">免费获得12款RichWP WordPress 收费主题</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/01/11/2460/" title="使用数据库服务或者使用文件的优缺点 (2010年01月11日)">使用数据库服务或者使用文件的优缺点</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/02/08/2497/" title="你可能不知道的MySQL (2010年02月8日)">你可能不知道的MySQL</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4109/" title="WordPress调用 PageCookery的方法 (2010年06月21日)">WordPress调用 PageCookery的方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/29/4255/" title="WordPress站点性能优化实战 (2010年06月29日)">WordPress站点性能优化实战</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/18/4073/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何通过 AutoMySQLBackup 备份你的博客数据库</title>
		<link>http://www.iwanna.cn/archives/2010/06/18/4071/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/18/4071/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 14:37:11 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4071</guid>
		<description><![CDATA[通过服务器直接备份博客数据库虽然最安全，但是需要手动不方便；通过 WordPress 插件备份虽然可以全自动，但是可能会出现问题。所以，如果能够把数据库备份到服务器，同时也备份到邮箱，不需要安装任何插件，并且一切都是自动 完成的，那就好了。
事实上，AutoMySQLBackup 程序是可以实现这个想法的，虽然并不适合所有的服务器。下面先介绍 AutoMySQLBackup  程序的使用方法，然后再说说它的不足之处。
一、通过 AutoMySQLBackup 备份博客数据库的具体步骤：
第一步. 下载 AutoMySQLBackup 文件
下载地址：AutoMySQLBackup

下载到的文件是这样的：
automysqlbackup.sh.2.5
把以上文件重命名为 “automysqlbackup.sh”。
第二步. 在服务器上创建一个备份文件夹
这个文件夹是用来储存你备份的数据库的，文件夹的名字可以随意。文件夹可以放到博客服务器的任何目录，但是为了安全起见，最好放在根目录，也就是和 “public_html”  文件夹放在一起，那样别人就访问不到你的备份数据库了。以下就以新文件夹的路径是“/home/young/backups”作为例子。
第三步. 上传 AutoMySQLBackup 文件
把 automysqlbackup.sh 文件上传到新建的文件夹 “backups”。你可以通过 FTP 软件上传，也可以通过  cPanel 上传。不过最好通过 cPanel 上传，因为就一个文件并且下面还要在 cPanel 上操作。
第四步. 更改许可
通过 cPanel 的“文件管理器” 找到并选择 AutoMySQLBackup 文件，点击“更改许可”，然后把许可属性改为“755”。
第五步. 修改 AutoMySQLBackup 文件
更改许可并保存之后，点击编辑。虽然 automysqlbackup.sh 文件里面的内容很多，但是你需要修改的只有以下7个地方：
# Username to access the MySQL server e.g. dbuser
USERNAME=这里填你的博客数据库用户名（1）
# Username to access [...]]]></description>
			<content:encoded><![CDATA[<p>通过服务器直接备份博客数据库虽然最安全，但是需要手动不方便；通过 WordPress 插件备份虽然可以全自动，但是可能会出现问题。所以，如果能够把数据库备份到服务器，同时也备份到邮箱，不需要安装任何插件，并且一切都是自动 完成的，那就好了。</p>
<p>事实上，AutoMySQLBackup 程序是可以实现这个想法的，虽然并不适合所有的服务器。下面先介绍 AutoMySQLBackup  程序的使用方法，然后再说说它的不足之处。</p>
<h2>一、通过 AutoMySQLBackup 备份博客数据库的具体步骤：</h2>
<p><strong>第一步. 下载 AutoMySQLBackup 文件</strong></p>
<p>下载地址：<a href="http://sourceforge.net/projects/automysqlbackup/">AutoMySQLBackup</a><br />
<span id="more-4071"></span><br />
下载到的文件是这样的：</p>
<blockquote><p><code>automysqlbackup.sh.2.5</code></p></blockquote>
<p>把以上文件重命名为 “automysqlbackup.sh”。</p>
<p><strong>第二步. 在服务器上创建一个备份文件夹</strong></p>
<p>这个文件夹是用来储存你备份的数据库的，文件夹的名字可以随意。文件夹可以放到博客服务器的任何目录，但是为了安全起见，最好放在根目录，也就是和 “public_html”  文件夹放在一起，那样别人就访问不到你的备份数据库了。以下就以新文件夹的路径是“/home/young/backups”作为例子。</p>
<p><strong>第三步. 上传 AutoMySQLBackup 文件</strong></p>
<p>把 automysqlbackup.sh 文件上传到新建的文件夹 “backups”。你可以通过 FTP 软件上传，也可以通过  cPanel 上传。不过最好通过 cPanel 上传，因为就一个文件并且下面还要在 cPanel 上操作。</p>
<p><strong>第四步. 更改许可</strong></p>
<p>通过 cPanel 的“文件管理器” 找到并选择 AutoMySQLBackup 文件，点击“更改许可”，然后把许可属性改为“755”。</p>
<p><strong>第五步. 修改 AutoMySQLBackup 文件</strong></p>
<p>更改许可并保存之后，点击编辑。虽然 automysqlbackup.sh 文件里面的内容很多，但是你需要修改的只有以下7个地方：</p>
<blockquote><p># Username to access the MySQL server e.g. dbuser<br />
USERNAME=这里填你的博客数据库用户名（1）</p>
<p># Username to access the MySQL server e.g. password<br />
PASSWORD=这里填你的博客数据库用户名的密码 （2）</p>
<p># Host name (or IP address) of MySQL server e.g localhost<br />
DBHOST=localhost</p>
<p># List of DBNAMES for Daily/Weekly Backup e.g. &#8220;DB1 DB2 DB3&#8243;<br />
DBNAMES=&#8221;这里填你的博客数据库名称，如果有多个数据库，每两个数据库名称中间用一个空格隔开，例如‘数据库1 数据库2  数据库3’，当然，你也可以填‘all’。&#8221; （3）</p>
<p># Backup directory location e.g /backups<br />
BACKUPDIR=&#8221;这里填你新建的文件夹路径，例如‘/home/young/backups’。&#8221;（4）</p>
<p># Mail setup<br />
# What would you like to be mailed to you?<br />
# &#8211; log   : send only log file<br />
# &#8211; files : send log file and sql files as attachments (see docs)<br />
# &#8211; stdout : will simply output the log to the screen if run manually.<br />
# &#8211; quiet : Only send logs if an error occurs to the MAILADDR.<br />
MAILCONTENT=&#8221;如果你想并且可以把备份的数据库发到邮箱，这里就填‘files’，否则，就填‘log’、‘stout’和‘quiet’其 中的任意一个。&#8221; （5）</p>
<p># Set the maximum allowed email size in k. (4000 = approx 5MB email  [see docs])<br />
MAXATTSIZE=&#8221;这里填允许发送邮件的最大尺寸，默认为4MB。&#8221; （6）</p>
<p># Email Address to send mail to? (user@domain.com)<br />
MAILADDR=&#8221;这里填你接收备份数据的邮箱地址&#8221; （7）</p></blockquote>
<p>以上标注的7个地方除了 （5）和（6）可以不改之外，其他都是需要更改的，另外，双引号是要保留的。</p>
<p>AutoMySQLBackup 文件修改完并保存之后，接下来的就简单了。</p>
<p><strong>第六步. 创建一个时钟守护作业</strong></p>
<p>打开 cPanel “高级”选项里面的“时钟守护作业（Cron  jobs)”，输入你的邮箱地址，设置要备份的时间，可以简单地设置为每天备份一次，也可以设置为具体哪一天备份。备份时间设置好之后，在  Command 一栏输入 AutoMySQLBackup 文件的路径，例如：</p>
<blockquote><p>/home/young/backups/automysqlbackup.sh</p></blockquote>
<p>点击 Add New Cron Job 就完成了整个通过 AutoMySQLBackup 备份你博客数据库的操作。</p>
<h2>二、AutoMySQLBackup 程序的不足之处</h2>
<p>通过 AutoMySQLBackup + Cron Job  的方式来备份博客数据库，可以少安装一个插件，可以同时备份多个数据库，还可以有双重保障——备份数据库可以保存在服务器上同时也可以发到邮箱。但是只有 安装了 <a href="http://www.mutt.org/">Mutt</a> 程序的服务器才可以把数据库发到邮箱。碰巧精品博客所用的服务器 BlueHost 不支持 Mutt，所以通过  AutoMySQLBackup，我只能把精品博客的数据库备份到服务器，而无法备份到邮箱。</p>
<p>如果你有在不支持 Mutt 的服务器上通过 AutoMySQLBackup  备份数据库到邮箱的解决方法，或者有可以把博客数据库备份到邮箱的其他程序，欢迎分享。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/18/4071/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/18/4071/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/18/4071/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/18/4071/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/18/4071/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/topics/develope/db/" title="Database" rel="tag nofollow">Database</a>, <a href="http://www.iwanna.cn/tags/db/" title="Database" rel="tag nofollow">Database</a>, <a href="http://www.iwanna.cn/topics/develope/php/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a>, <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4073/" title="三种直接备份 WordPress 博客数据库的方法 (2010年06月18日)">三种直接备份 WordPress 博客数据库的方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4069/" title="10 大免费 WordPress 博客数据库备份插件 (2010年06月18日)">10 大免费 WordPress 博客数据库备份插件</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4123/" title="盘点2010年十大数据库漏洞 (2010年06月21日)">盘点2010年十大数据库漏洞</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/04/18/2765/" title="数据库备份存储过程 [SQL Server 2005] (2010年04月18日)">数据库备份存储过程 [SQL Server 2005]</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/21/4658/" title="因为垄断形成，数据库市场将出现更多开源数据库 (2010年07月21日)">因为垄断形成，数据库市场将出现更多开源数据库</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/30/4271/" title="免费获得12款RichWP WordPress 收费主题 (2010年06月30日)">免费获得12款RichWP WordPress 收费主题</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/01/11/2460/" title="使用数据库服务或者使用文件的优缺点 (2010年01月11日)">使用数据库服务或者使用文件的优缺点</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/02/08/2497/" title="你可能不知道的MySQL (2010年02月8日)">你可能不知道的MySQL</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4109/" title="WordPress调用 PageCookery的方法 (2010年06月21日)">WordPress调用 PageCookery的方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/29/4255/" title="WordPress站点性能优化实战 (2010年06月29日)">WordPress站点性能优化实战</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/18/4071/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 大免费 WordPress 博客数据库备份插件</title>
		<link>http://www.iwanna.cn/archives/2010/06/18/4069/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/18/4069/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 14:34:30 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4069</guid>
		<description><![CDATA[直接备份 WordPress 博客数据库的方法虽然比较安全，但是也比较麻烦，因为你每次都要手动操作。于是，有人想到了通过使用插件的方法来自动备份 WordPress 博客的数据库。
WordPress 博客数据库备份插件不少，下面 10 个则是其中的佼佼者，它们都是免费的并且都兼容于 WordPress 2.9.2：
1. WordPress  Database Backup


安装并激活 WordPress Database Backup 插件之后，你会在 WordPress  控制面板的“工具”分类下面看到“备份”选项，点击就可以对插件进行设置。你可以选择要备份的数据表，然后通过设定“定时备份”把备份数据库发到你的邮箱，当然，你也可以选择“立即备份”，把数据库备份到你的电脑硬盘。
2. WordPress  Online Automated Backup

到 wordpressbackup.com 网站注册一个帐号，并添加你的博客（一个帐号一个博客），接着下载并安装 WordPress  Online Automated Backup 插件，然后按照要求对插件进行设置，完了之后，该插件就会自动备份你的博客数据库到  wordpressbackup.com 网站，备份时间是经常而不定时的，免费帐户数据库的最大容量为 5M。
3. BackWPup

BackWPup 可以备份数据库，也可以备份 WordPress  文件夹里面的文件，还可以优化数据表。备份的数据库会保存在博客所在服务器，同时也可以下载或者发送到邮箱，支持自动备份。
4. DBC Backup

DBC Backup 是把你的 WordPress  博客数据库备份到博客所在的服务器，你可以随时进行手动备份，也可以设定自动备份的时间；你可以选择自动删除所有的旧备份，也可以选择不删除或者删除多少 天之后的备份；你可以选择压缩备份文件，也可以选择不压缩文件。
5. myEASYbackup

myEASYbackup 的操作也很简单，安装并激活插件之后，就可以直接进行备份了，除了备份 WordPress  [...]]]></description>
			<content:encoded><![CDATA[<p>直接备份 WordPress 博客数据库的方法虽然比较安全，但是也比较麻烦，因为你每次都要手动操作。于是，有人想到了通过使用插件的方法来自动备份 WordPress 博客的数据库。</p>
<p><strong><a title="10 大免费 WordPress 博客数据库备份插件" href="http://www.iwanna.cn/archives/2010/06/18/4069/">WordPress 博客数据库备份插件</a></strong>不少，下面 10 个则是其中的佼佼者，它们都是免费的并且都兼容于 WordPress 2.9.2：</p>
<p><strong>1. <a id="aptureLink_Ew71N3dtW0" href="http://wordpress.org/extend/plugins/wp-db-backup/">WordPress  Database Backup</a></strong></p>
<p><img title="WordPress-Database-Backup" src="http://images.uheed.com/iwanna/2010/06/18/wordpress_db_back/WordPress-Database-Backup.jpg" alt="WordPress backup" width="537px" height="388px" /><br />
<span id="more-4069"></span><br />
安装并激活 WordPress <a href="http://www.iwanna.cn/tags/db/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Database">Database</a> Backup 插件之后，你会在 WordPress  控制面板的“工具”分类下面看到“备份”选项，点击就可以对插件进行设置。你可以选择要备份的数据表，然后通过设定“定时备份”把备份数据库发到你的邮箱，当然，你也可以选择“立即备份”，把数据库备份到你的电脑硬盘。</p>
<p><strong>2. <a id="aptureLink_UXXhsOaiFY" href="http://wordpress.org/extend/plugins/wordpressbackup/">WordPress  Online Automated Backup</a></strong></p>
<p><img title="wordpressbackup" src="http://images.uheed.com/iwanna/2010/06/18/wordpress_db_back/wordpressbackup.jpg" alt="WordPress backup" width="537px" height="291px" /></p>
<p>到 wordpressbackup.com 网站注册一个帐号，并添加你的博客（一个帐号一个博客），接着下载并安装 WordPress  Online Automated Backup 插件，然后按照要求对插件进行设置，完了之后，该插件就会自动备份你的博客数据库到  wordpressbackup.com 网站，备份时间是经常而不定时的，免费帐户数据库的最大容量为 5M。</p>
<p><strong>3. <a id="aptureLink_I9zKFQbiC6" href="http://wordpress.org/extend/plugins/backwpup/">BackWPup</a></strong></p>
<p><img title="BackWPup" src="http://images.uheed.com/iwanna/2010/06/18/wordpress_db_back/BackWPup.jpg" alt="WordPress backup" width="537px" height="313px" /></p>
<p>BackWPup 可以备份数据库，也可以备份 WordPress  文件夹里面的文件，还可以优化数据表。备份的数据库会保存在博客所在服务器，同时也可以下载或者发送到邮箱，支持自动备份。</p>
<p><strong>4. <a id="aptureLink_Fo77JzUgPx" href="http://wordpress.org/extend/plugins/dbc-backup/">DBC Backup</a></strong></p>
<p><img title="dbc-backup" src="http://images.uheed.com/iwanna/2010/06/18/wordpress_db_back/b6dbc-backup.jpg" alt="WordPress backup" width="540px" height="282px" /></p>
<p>DBC Backup 是把你的 WordPress  博客数据库备份到博客所在的服务器，你可以随时进行手动备份，也可以设定自动备份的时间；你可以选择自动删除所有的旧备份，也可以选择不删除或者删除多少 天之后的备份；你可以选择压缩备份文件，也可以选择不压缩文件。</p>
<p><strong>5. <a id="aptureLink_Stzh129WSo" href="http://wordpress.org/extend/plugins/myeasybackup/">myEASYbackup</a></strong></p>
<p><img title="myEASYbackup" src="http://images.uheed.com/iwanna/2010/06/18/wordpress_db_back/myEASYbackup.jpg" alt="WordPress backup" width="540px" height="230px" /></p>
<p>myEASYbackup 的操作也很简单，安装并激活插件之后，就可以直接进行备份了，除了备份 WordPress  博客数据库之外，还可以备份 WordPress 的安装文件，备份文件会保存在你的服务器，但是你也可以在 WordPress  后台直接下载到你的电脑。该插件目前不支持自动备份。</p>
<p><strong>6. <a id="aptureLink_fwnsdC8z6Q" href="http://wordpress.org/extend/plugins/wponlinebackup/">Online Backup  for WordPress</a> </strong></p>
<p><img title="Online-Backup-for-WordPress" src="http://images.uheed.com/iwanna/2010/06/18/wordpress_db_back/Online-Backup-for-WordPress.jpg" alt="WordPress backup" width="540px" height="206px" /></p>
<p>在使用 Online Backup for WordPress 之前，你需要先到插件开发者 BTE 那里注册，免费注册后你可以获得 50M  的存储空间，你可以把 WordPress  博客的数据库备份到那个空间，也可以把数据库下载到你的电脑或者备份到你的邮箱，可以设置自动备份时间，也可以马上进行手动备份。</p>
<p><strong>7. <a id="aptureLink_9CMF5xlztc" href="http://wordpress.org/extend/plugins/wordpress-ez-backup/">WordPress  EZ Backup</a></strong></p>
<p><img title="wordpress-ez-backup" src="http://images.uheed.com/iwanna/2010/06/18/wordpress_db_back/wordpress-ez-backup.jpg" alt="WordPress backup" width="537px" height="280px" /></p>
<p>WordPress EZ Backup 可以把你 WordPress  博客的任意文件夹以及数据库备份到博客服务器上。除了手动备份，你也可以进行自动备份，不过 WordPress EZ Backup  需要设置的地方比较多。</p>
<p><strong>8. <a id="aptureLink_rPLFwlxkjn" href="http://wordpress.org/extend/plugins/bei-fen/">Bei Fen</a></strong></p>
<p><img title="beifen" src="http://images.uheed.com/iwanna/2010/06/18/wordpress_db_back/beifen.jpg" alt="WordPress backup" width="537px" height="284px" /></p>
<p>Bei Fen 插件可以把你 WordPress  的文件以及/或者数据库备份到博客的服务器，你可以手动进行立即备份，也可以设定自动备份时间。备份数据库可以直接在 WordPress  后台删除或者恢复。</p>
<p><strong>9. <a id="aptureLink_VpzdlXEKn8" href="http://wordpress.org/extend/plugins/remote-database-backup/">Remote  Database Backup</a></strong></p>
<p><img title="Remote-Database-Backup" src="http://images.uheed.com/iwanna/2010/06/18/wordpress_db_back/Remote-Database-Backup.jpg" alt="WordPress backup" width="540px" height="226px" /></p>
<p>Remote <a href="http://www.iwanna.cn/tags/db/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Database">Database</a> Backup 插件可以说是 WordPress <a href="http://www.iwanna.cn/tags/db/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Database">Database</a> Backup 的简化，你可以直接在  WordPress 管理后台备份并下载数据库，但是不可以自动备份数据库，也不可以设置把备份的数据库发送到邮箱。</p>
<p><strong>10. <a id="aptureLink_yZPDOjdBsK" href="http://wordpress.org/extend/plugins/wp-dbmanager/">WP-DBManager</a></strong></p>
<p><img title="wp-dbmanager" src="http://images.uheed.com/iwanna/2010/06/18/wordpress_db_back/wp-dbmanager.jpg" alt="WordPress backup" width="540px" height="209px" /></p>
<p>WP-DBManager 的功能相当丰富，你可以把数据库备份到服务器、邮箱或者电脑硬盘，可以设置自动备份，可以修复、优化、清空甚至删除数据表，还可以删除或者还原备份到博客所在服务器的数据库。</p>
<p>编辑后注：<a href="http://www.iwanna.cn/">我想网</a>一直通过 WordPress <a href="http://www.iwanna.cn/tags/db/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Database">Database</a> Backup 这个插件来备份博客数据库，推荐大家使用，我通常会把备份的时间定在午夜之后操作，因为这个时间往往都是网站访问量最低的时间段，可以有效确保WordPress站点的正常运行。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/18/4069/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/18/4069/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/18/4069/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/18/4069/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/18/4069/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/topics/develope/db/" title="Database" rel="tag nofollow">Database</a>, <a href="http://www.iwanna.cn/tags/db/" title="Database" rel="tag nofollow">Database</a>, <a href="http://www.iwanna.cn/topics/develope/php/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a>, <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4071/" title="如何通过 AutoMySQLBackup 备份你的博客数据库 (2010年06月18日)">如何通过 AutoMySQLBackup 备份你的博客数据库</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4073/" title="三种直接备份 WordPress 博客数据库的方法 (2010年06月18日)">三种直接备份 WordPress 博客数据库的方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4123/" title="盘点2010年十大数据库漏洞 (2010年06月21日)">盘点2010年十大数据库漏洞</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/04/18/2765/" title="数据库备份存储过程 [SQL Server 2005] (2010年04月18日)">数据库备份存储过程 [SQL Server 2005]</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/21/4658/" title="因为垄断形成，数据库市场将出现更多开源数据库 (2010年07月21日)">因为垄断形成，数据库市场将出现更多开源数据库</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/30/4271/" title="免费获得12款RichWP WordPress 收费主题 (2010年06月30日)">免费获得12款RichWP WordPress 收费主题</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/01/11/2460/" title="使用数据库服务或者使用文件的优缺点 (2010年01月11日)">使用数据库服务或者使用文件的优缺点</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/02/08/2497/" title="你可能不知道的MySQL (2010年02月8日)">你可能不知道的MySQL</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4109/" title="WordPress调用 PageCookery的方法 (2010年06月21日)">WordPress调用 PageCookery的方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/29/4255/" title="WordPress站点性能优化实战 (2010年06月29日)">WordPress站点性能优化实战</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/18/4069/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 3.0正式版发布</title>
		<link>http://www.iwanna.cn/archives/2010/06/18/4067/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/18/4067/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 14:07:22 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=4067</guid>
		<description><![CDATA[全球最大的播客软件WordPress刚 刚发布了WordPress  3.0，代号“Thelonious”，是WordPress历史上第13个版本。WordPress在几个月前就发布了Beta版，但直到现在才推出正 式版本。WordPress上个版本WordPress 2.9的下载次数达到了1030万次。
主要更新如下：一个新的默认主题Twenty Ten，一个更简洁的界面，修复了1217个程序错 误。主题开始受重视，主题设计者可以通过API自定义菜单、文章类型、标题、背景等。
另一个重大变化是把WordPress多用户版本 (MU)和WordPress安装内核进行了融合。此前WordPress  MU这个分支一直处于独立状态。现在你可以在WordPress 3中看到两个版本的功能。

有趣的是，WordPress称团队在未来三个月内将专注于WordPress周边功能开发，而非WordPress平 台本身。这些周边功能包括：展示台，Codex，论坛，档案，更新和兼容性API，主题目录，插件目录，邮件列表，核心插件，wordcamp.org 等。
以下是WordPress 3.0的视频介绍：

English version by Jason Kincaid

© 我想网 Akon 所有 , 2010. &#124;
永久链接 &#124;
没有评论 &#124;
提交到
Google Reader
鲜果
抓虾


	标签：Wordpress, Wordpress

	您可能会感兴趣的其他文章
	
	如何通过 AutoMySQLBackup 备份你的博客数据库 
	免费获得12款RichWP WordPress 收费主题 
	三种直接备份 WordPress 博客数据库的方法 
	WordPress调用 PageCookery的方法 
	WordPress站点性能优化实战 
	WordPress模板结构及页面函数调用 
	4款WordPress图片缩放插件 
	36个最新漂亮的WordPress免费主题下载 
	10个迷你且清爽的免费WordPress主题 
	10个提高WordPress安全性的小诀窍 



Feed enhanced by Better Feed from  Ozh
]]></description>
			<content:encoded><![CDATA[<p>全球最大的播客软件<a href="http://www.wordpress.com/" target="_blank">WordPress</a>刚 刚发布了WordPress  3.0，代号“Thelonious”，是WordPress历史上第13个版本。WordPress在几个月前就发布了Beta版，但直到现在才推出正 式版本。WordPress上个版本WordPress 2.9的下载次数达到了1030万次。</p>
<p>主要更新如下：一个新的默认主题<a href="http://2010dev.wordpress.com/" target="_blank">Twenty Ten</a>，一个更简洁的界面，修复了1217个程序错 误。主题开始受重视，主题设计者可以通过API自定义菜单、文章类型、标题、背景等。</p>
<p>另一个重大变化是把WordPress多用户版本 (MU)和WordPress安装内核进行了融合。此前WordPress  MU这个分支一直处于独立状态。现在你可以在WordPress 3中看到两个版本的功能。<br />
<span id="more-4067"></span><br />
有趣的是，WordPress称团队在未来三个月内将专注于WordPress周边功能开发，而非WordPress平 台本身。这些周边功能包括：展示台，Codex，论坛，档案，更新和兼容性API，主题目录，插件目录，邮件列表，核心插件，wordcamp.org 等。</p>
<p>以下是WordPress 3.0的视频介绍：<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://player.youku.com/player.php/sid/XMTgyNTIxNTEy/v.swf" /><param name="wmode" value="transparent" /><embed type="application/x-shockwave-flash" width="480" height="400" src="http://player.youku.com/player.php/sid/XMTgyNTIxNTEy/v.swf" wmode="transparent"></embed></object></p>
<p>English version by Jason Kincaid</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/18/4067/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/18/4067/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/18/4067/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/18/4067/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/18/4067/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/topics/develope/php/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a>, <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" title="Wordpress" rel="tag nofollow">Wordpress</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4071/" title="如何通过 AutoMySQLBackup 备份你的博客数据库 (2010年06月18日)">如何通过 AutoMySQLBackup 备份你的博客数据库</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/30/4271/" title="免费获得12款RichWP WordPress 收费主题 (2010年06月30日)">免费获得12款RichWP WordPress 收费主题</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/18/4073/" title="三种直接备份 WordPress 博客数据库的方法 (2010年06月18日)">三种直接备份 WordPress 博客数据库的方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4109/" title="WordPress调用 PageCookery的方法 (2010年06月21日)">WordPress调用 PageCookery的方法</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/29/4255/" title="WordPress站点性能优化实战 (2010年06月29日)">WordPress站点性能优化实战</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/21/4119/" title="WordPress模板结构及页面函数调用 (2010年06月21日)">WordPress模板结构及页面函数调用</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/24/4181/" title="4款WordPress图片缩放插件 (2010年06月24日)">4款WordPress图片缩放插件</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/03/4338/" title="36个最新漂亮的WordPress免费主题下载 (2010年07月3日)">36个最新漂亮的WordPress免费主题下载</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/09/4453/" title="10个迷你且清爽的免费WordPress主题 (2010年07月9日)">10个迷你且清爽的免费WordPress主题</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/07/04/4340/" title="10个提高WordPress安全性的小诀窍 (2010年07月4日)">10个提高WordPress安全性的小诀窍</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/18/4067/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>国外PHP开发者放弃PHP而改用Python</title>
		<link>http://www.iwanna.cn/archives/2010/06/11/3900/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/11/3900/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 15:47:12 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=3900</guid>
		<description><![CDATA[本文作者作为一名从事PHP开发11年的资深开发者，却放弃了PHP而改用Python。借助本文，作者与其说是解释了他做出这种选择的原因，不如 说是他对 PHP和Python两种语言的性能进行了比较。以下是作者的原文翻译：
我之所以放弃PHP，原因首先是语言。PHP实际上不是一种语言，而是一种巨大的插件结构，以一种高层的形式来展示低层的库。而大部分开发者使 用的 语言实际上是对C功能 (curl, mysql, gd,  etc.)的包装，通常情况下它们的库展示得很简单。因而这导致了PHP的API不一致。
PHP语言的第二个问题是语言的管理问题。PHP语言实际上是由委员会来设计的，而且没有人来制定任何共识性的标准。PEAR有自己的标准，PHP有自己 的标准，这导致SPL classes更具Java风格，而PEAR却截然不同。
从事PHP开发11年来，我认识了很多PHP领域的专家级开发者，它们对PHP也有很多看法。除了上文提到的委员会问题以及标准混乱问题之外，由于PHP 的使用范围非常广，向后的不兼容对代码造成了很大的破坏。
还要提到的一点是PHP缺乏很多现代语言的特性。现在再来说说Python：
Python语言的创建方法几乎与PHP的完全相反。首先，Python是由Benevolent Dictator和Guido van  Rossum领导的，语言的开发由单一的人员主导，因此它的开发、管理以及长期运营会保持很好的连续性。Guido和Python的核心开发者通过PEP   创建标准，而且通过公共接口展示标准是如何创建的。而且，Guido如果想到的语言特性不够好，也不会出现在语言层中（如没有++运算符，而且比较符中没  有分配）。
延续性的特点也延伸到了整个Python社区，所以你很难发现不同项目中的Python截然不同。
我最喜欢的Python的一个特点就是它的清晰。当打开Python中的一个文件的时候，我会清楚地知道里面大概有什么样子的代码，联想到很多次我被 PHP的这一点搞得焦头烂额，我觉得这个特性非常有用。
总之，Python的系统级特性非常不错。
Python另外一个很棒的特性是直白性。需要namespace(命名空间)？文件的名字就是命名空间；需要模块？只需要用一个__init__.py 文件代替；需要重命名功能？只需要new_func = old_func。

© 我想网 Akon 所有 , 2010. &#124;
永久链接 &#124;
没有评论 &#124;
提交到
Google Reader
鲜果
抓虾


	标签：PHP, PHP, Python, Python

	您可能会感兴趣的其他文章
	
	10个免费开源微博客程序 
	设计模式之单例模式 
	论述PHP开发框架: What, When, Why and Which? 
	腾讯PHP程序员面试题目 
	简易Wordpress模板代码帮助手册中文版 
	用PHP数组对百万数据进行排重 
	用 PHP 读取和编写 XML DOM 
	深入理解PHP之匿名函数 
	最快的 [...]]]></description>
			<content:encoded><![CDATA[<p>本文作者作为一名从事<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>开发11年的资深开发者，却放弃了<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>而改用<a href="http://www.iwanna.cn/tags/python/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Python">Python</a>。借助本文，作者与其说是解释了他做出这种选择的原因，不如 说是他对 <a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>和<a href="http://www.iwanna.cn/tags/python/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Python">Python</a>两种语言的性能进行了比较。以下是作者的原文翻译：</p>
<p>我之所以放弃<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>，原因首先是语言。<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>实际上不是一种语言，而是一种巨大的插件结构，以一种高层的形式来展示低层的库。而大部分开发者使 用的 语言实际上是对C功能 (curl, mysql, gd,  etc.)的包装，通常情况下它们的库展示得很简单。因而这导致了<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>的API不一致。</p>
<p><a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>语言的第二个问题是语言的管理问题。<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>语言实际上是由委员会来设计的，而且没有人来制定任何共识性的标准。PEAR有自己的标准，<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>有自己 的标准，这导致SPL classes更具Java风格，而PEAR却截然不同。</p>
<p>从事<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>开发11年来，我认识了很多<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>领域的专家级开发者，它们对<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>也有很多看法。除了上文提到的委员会问题以及标准混乱问题之外，由于<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a> 的使用范围非常广，向后的不兼容对代码造成了很大的破坏。</p>
<p>还要提到的一点是<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>缺乏很多现代语言的特性。现在再来说说<a href="http://www.iwanna.cn/tags/python/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Python">Python</a>：</p>
<p><a href="http://www.iwanna.cn/tags/python/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Python">Python</a>语言的创建方法几乎与<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>的完全相反。首先，<a href="http://www.iwanna.cn/tags/python/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Python">Python</a>是由Benevolent Dictator和Guido van  Rossum领导的，语言的开发由单一的人员主导，因此它的开发、管理以及长期运营会保持很好的连续性。Guido和<a href="http://www.iwanna.cn/tags/python/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Python">Python</a>的核心开发者通过PEP   创建标准，而且通过公共接口展示标准是如何创建的。而且，Guido如果想到的语言特性不够好，也不会出现在语言层中（如没有++运算符，而且比较符中没  有分配）。</p>
<p>延续性的特点也延伸到了整个<a href="http://www.iwanna.cn/tags/python/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Python">Python</a>社区，所以你很难发现不同项目中的<a href="http://www.iwanna.cn/tags/python/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Python">Python</a>截然不同。</p>
<p>我最喜欢的<a href="http://www.iwanna.cn/tags/python/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Python">Python</a>的一个特点就是它的清晰。当打开<a href="http://www.iwanna.cn/tags/python/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Python">Python</a>中的一个文件的时候，我会清楚地知道里面大概有什么样子的代码，联想到很多次我被 <a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">PHP</a>的这一点搞得焦头烂额，我觉得这个特性非常有用。</p>
<p>总之，<a href="http://www.iwanna.cn/tags/python/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Python">Python</a>的系统级特性非常不错。</p>
<p><a href="http://www.iwanna.cn/tags/python/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Python">Python</a>另外一个很棒的特性是直白性。需要namespace(命名空间)？文件的名字就是命名空间；需要模块？只需要用一个__init__.py 文件代替；需要重命名功能？只需要new_func = old_func。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/11/3900/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/11/3900/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/11/3900/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/11/3900/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/11/3900/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/topics/develope/php/" title="PHP" rel="tag nofollow">PHP</a>, <a href="http://www.iwanna.cn/tags/php/" title="PHP" rel="tag nofollow">PHP</a>, <a href="http://www.iwanna.cn/topics/develope/python/" title="Python" rel="tag nofollow">Python</a>, <a href="http://www.iwanna.cn/tags/python/" title="Python" rel="tag nofollow">Python</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2010/02/03/2483/" title="10个免费开源微博客程序 (2010年02月3日)">10个免费开源微博客程序</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/02/149/" title="设计模式之单例模式 (2009年04月2日)">设计模式之单例模式</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/07/31/2088/" title="论述PHP开发框架: What, When, Why and Which? (2009年07月31日)">论述PHP开发框架: What, When, Why and Which?</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/08/3767/" title="腾讯PHP程序员面试题目 (2010年06月8日)">腾讯PHP程序员面试题目</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/03/171/" title="简易Wordpress模板代码帮助手册中文版 (2009年04月3日)">简易Wordpress模板代码帮助手册中文版</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/08/3769/" title="用PHP数组对百万数据进行排重 (2010年06月8日)">用PHP数组对百万数据进行排重</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/07/05/1933/" title="用 PHP 读取和编写 XML DOM (2009年07月5日)">用 PHP 读取和编写 XML DOM</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/20/4102/" title="深入理解PHP之匿名函数 (2010年06月20日)">深入理解PHP之匿名函数</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/08/20/2171/" title="最快的 PHP 模板引擎 Blitz Templates (2009年08月20日)">最快的 PHP 模板引擎 Blitz Templates</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/08/24/2193/" title="开发者不可不知的PHP框架深度解析 (2009年08月24日)">开发者不可不知的PHP框架深度解析</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/11/3900/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php 加密解密类(含公钥)</title>
		<link>http://www.iwanna.cn/archives/2010/06/08/3820/</link>
		<comments>http://www.iwanna.cn/archives/2010/06/08/3820/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 14:34:40 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[程序源码]]></category>
		<category><![CDATA[Source-code]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=3820</guid>
		<description><![CDATA[&#60;?php
class  Crypt{
protected $key = “”;    //公钥
private function keyED($txt,$encrypt_key)
{
$encrypt_key = md5($encrypt_key);
$ctr=0;
$tmp = “”;
for ($i=0;$i&#60;strlen($txt);$i++)
{
if ($ctr==strlen($encrypt_key)){
$ctr=0;
}
$tmp.= substr($txt,$i,1) ^ substr($encrypt_key,$ctr,1);
$ctr++;
}
return $tmp;
}

public function encrypt($txt,$key=”&#8221;)
{
if(empty($key)){
$key=$this-&#62;key;
}
srand((double)microtime()*1000000);
$encrypt_key = md5(rand(0,32000));
$ctr=0;
$tmp = “”;
for ($i=0;$i&#60;strlen($txt);$i++)
{
if ($ctr==strlen($encrypt_key)){
$ctr=0;
}
$tmp.= substr($encrypt_key,$ctr,1) .
(substr($txt,$i,1) ^ substr($encrypt_key,$ctr,1));
$ctr++;
}
return $this-&#62;keyED($tmp,$key);
}
public function decrypt($txt,$key=”&#8221;)
{
if(empty($key)){
$key=$this-&#62;key;
}
$txt = $this-&#62;keyED($txt,$key);
$tmp = “”;
for ($i=0;$i&#60;strlen($txt);$i++)
{
$md5 = substr($txt,$i,1);
$i++;
$tmp.= (substr($txt,$i,1) ^ $md5);
}
return $tmp;
}
public function setKey($key)
{
if(empty($key)){
return null;
}
$this-&#62;key=$key;
}
public function getKey()
{
return $this-&#62;key;
}
}
$string = “http://www.52blogger.com”;
$crypt= new Crypt();
$crypt-&#62;setKey(“http://www.52blogger.com”);
$enc_text = [...]]]></description>
			<content:encoded><![CDATA[<p>&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with PHP">php</a><br />
class  Crypt{</p>
<p>protected $key = “”;    //公钥</p>
<p>private function keyED($txt,$encrypt_key)<br />
{<br />
$encrypt_key = md5($encrypt_key);<br />
$ctr=0;<br />
$tmp = “”;<br />
for ($i=0;$i&lt;strlen($txt);$i++)<br />
{<br />
if ($ctr==strlen($encrypt_key)){<br />
$ctr=0;<br />
}<br />
$tmp.= substr($txt,$i,1) ^ substr($encrypt_key,$ctr,1);<br />
$ctr++;<br />
}<br />
return $tmp;<br />
}<br />
<span id="more-3820"></span><br />
public function encrypt($txt,$key=”&#8221;)<br />
{<br />
if(empty($key)){<br />
$key=$this-&gt;key;<br />
}<br />
srand((double)microtime()*1000000);<br />
$encrypt_key = md5(rand(0,32000));<br />
$ctr=0;<br />
$tmp = “”;<br />
for ($i=0;$i&lt;strlen($txt);$i++)<br />
{<br />
if ($ctr==strlen($encrypt_key)){<br />
$ctr=0;<br />
}<br />
$tmp.= substr($encrypt_key,$ctr,1) .<br />
(substr($txt,$i,1) ^ substr($encrypt_key,$ctr,1));<br />
$ctr++;<br />
}<br />
return $this-&gt;keyED($tmp,$key);<br />
}</p>
<p>public function decrypt($txt,$key=”&#8221;)<br />
{<br />
if(empty($key)){<br />
$key=$this-&gt;key;<br />
}</p>
<p>$txt = $this-&gt;keyED($txt,$key);<br />
$tmp = “”;<br />
for ($i=0;$i&lt;strlen($txt);$i++)<br />
{<br />
$md5 = substr($txt,$i,1);<br />
$i++;<br />
$tmp.= (substr($txt,$i,1) ^ $md5);<br />
}<br />
return $tmp;<br />
}</p>
<p>public function setKey($key)<br />
{<br />
if(empty($key)){<br />
return null;<br />
}<br />
$this-&gt;key=$key;<br />
}</p>
<p>public function getKey()<br />
{<br />
return $this-&gt;key;<br />
}</p>
<p>}<br />
$string = “http://www.52blogger.com”;<br />
$crypt= new Crypt();<br />
$crypt-&gt;setKey(“http://www.52blogger.com”);<br />
$enc_text = $crypt-&gt;encrypt($string,$crypt-&gt;getKey());<br />
$dec_text = $crypt-&gt;decrypt($enc_text,$crypt-&gt;getKey());<br />
echo “加密前 : $string &lt;br/&gt;\n”;<br />
echo “加密后 : $enc_text &lt;br/&gt;\n”;<br />
echo “解密后 : $dec_text \n”;<br />
?&gt;</p>
<p>执行结果:</p>
<p>加密前 : http://www.52blogger.com<br />
加密后 : hSzQ’Z* kP~ y (WpVs   = 6Q3 gZbR5Qk h tZ( f=Zm<br />
解密后 : http://www.52blogger.com</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/06/08/3820/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/06/08/3820/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/06/08/3820/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/06/08/3820/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/06/08/3820/">抓虾</a>
<hr />
</p>
	标签：<a href="http://www.iwanna.cn/topics/develope/php/" title="PHP" rel="tag nofollow">PHP</a>, <a href="http://www.iwanna.cn/tags/php/" title="PHP" rel="tag nofollow">PHP</a>, <a href="http://www.iwanna.cn/tags/source-code/" title="Source-code" rel="tag nofollow">Source-code</a>, <a href="http://www.iwanna.cn/topics/resource/" title="程序源码" rel="tag nofollow">程序源码</a><br />

	<h2 class="related_post">您可能会感兴趣的其他文章</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.iwanna.cn/archives/2009/07/21/2041/" title="PHP获取字符串编码类型 (2009年07月21日)">PHP获取字符串编码类型</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/01/26/2468/" title="9个PHP库简介和下载 (2010年01月26日)">9个PHP库简介和下载</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/01/26/2470/" title="21个实用便利的PHP代码 (2010年01月26日)">21个实用便利的PHP代码</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/02/03/2483/" title="10个免费开源微博客程序 (2010年02月3日)">10个免费开源微博客程序</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/02/149/" title="设计模式之单例模式 (2009年04月2日)">设计模式之单例模式</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/07/31/2088/" title="论述PHP开发框架: What, When, Why and Which? (2009年07月31日)">论述PHP开发框架: What, When, Why and Which?</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/08/3767/" title="腾讯PHP程序员面试题目 (2010年06月8日)">腾讯PHP程序员面试题目</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/04/03/171/" title="简易Wordpress模板代码帮助手册中文版 (2009年04月3日)">简易Wordpress模板代码帮助手册中文版</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2010/06/08/3769/" title="用PHP数组对百万数据进行排重 (2010年06月8日)">用PHP数组对百万数据进行排重</a> </li>
	<li><a href="http://www.iwanna.cn/archives/2009/07/05/1933/" title="用 PHP 读取和编写 XML DOM (2009年07月5日)">用 PHP 读取和编写 XML DOM</a> </li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/06/08/3820/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
