<?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.canfree.com/tag/php/feed" rel="self" type="application/rss+xml" /><link>http://www.canfree.com</link> <description>博优谷是知名的IT评论博客，探讨网站优化，网上赚钱，免费资源，站长工具，站长新闻等资讯</description> <lastBuildDate>Sun, 05 Feb 2012 15:46:40 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>wordpress归档页面的实现方法</title><link>http://www.canfree.com/realization-of-wordpress-archive-pages.htm</link> <comments>http://www.canfree.com/realization-of-wordpress-archive-pages.htm#comments</comments> <pubDate>Wed, 20 Apr 2011 12:32:28 +0000</pubDate> <dc:creator>博优谷</dc:creator> <category><![CDATA[主题优化]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[归档]]></category> <guid
isPermaLink="false">http://www.canfree.com/?p=1280</guid> <description><![CDATA[有一个归档页对于独立博客来说是必不可少的，即方便访客查阅也有利于搜索引擎检索。总结了一下网上的方法，不外乎以下几种： 使用插件Clean Archives Reloaded。使用说明：http://wpsite.info/archives/1674轻量级，JS伸缩效果 使用函数archives_list_SHe。使用说明：http://zww.me/archives/25209复杂，高手使用 使用插件Dagon Design Sitemap Generator实现sitemap页。使用说明:http://www.dagondesign.com/articles/sitemap-generator-plugin-for-wordpress/这个很久没更新了，不过还是可以使用，本站决定有空重新折腾下。]]></description> <content:encoded><![CDATA[<p>有一个归档页对于独立博客来说是必不可少的，即方便访客查阅也有利于搜索引擎检索。总结了一下网上的方法，不外乎以下几种：</p><ol><li>使用插件Clean Archives Reloaded。使用说明：http://wpsite.info/archives/1674轻量级，JS伸缩效果</li><li>使用函数archives_list_SHe。使用说明：http://zww.me/archives/25209复杂，高手使用</li><li>使用插件Dagon Design Sitemap Generator实现sitemap页。使用说明:http://www.dagondesign.com/articles/sitemap-generator-plugin-for-<a
href="http://www.wordpress.org"target="_blank"title="访问[wordpress]" >wordpress</a>/这个很久没更新了，不过还是可以使用，本站决定有空重新折腾下。</li></ol><p><img
class="alignnone" title="ceshi" src="http://img04.taobaocdn.com/imgextra/i4/157311/T2Ze0MXelbXXXXXXXX_!!157311.jpg" alt="T2Ze0MXelbXXXXXXXX !!157311 wordpress归档页面的实现方法" width="560" height="537" /></p><ol></ol> ]]></content:encoded> <wfw:commentRss>http://www.canfree.com/realization-of-wordpress-archive-pages.htm/feed</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>wordpress非插件实现中英文字符串截断</title><link>http://www.canfree.com/wordpress-plug-in-implementation-of-non-english-strings-truncated.htm</link> <comments>http://www.canfree.com/wordpress-plug-in-implementation-of-non-english-strings-truncated.htm#comments</comments> <pubDate>Wed, 20 Apr 2011 05:44:22 +0000</pubDate> <dc:creator>博优谷</dc:creator> <category><![CDATA[主题优化]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[代码]]></category> <guid
isPermaLink="false">http://www.canfree.com/?p=1276</guid> <description><![CDATA[有利于SEO的排版样式应该是标题+摘要，摘要可以在写文章时自己添加，也可以通过插件实现，但是插件对中文支持度不够友好。本人推荐用wordpress自带的函数实现，轻量级且中英文支持良好。关于非插件文章截断，在以前的文章中也有介绍，今天重新整理并升级一下。 一，用mb_strimwidth() 函数 如果你的主机支持utf-8的话，这个函数是最佳的，调用代码为 &#60;span&#62;&#60;?php echo mb_strimwidth&#40;strip_tags&#40;apply_filters&#40;'the_content', $post-&#62;post_content&#41;&#41;, 0, 150,&#34;...&#34;&#41;; ?&#62;&#60;/span&#62; 说明一下：0，表示从文章开头开始截图;150,截取到第150个字符；...，摘要末尾的样式。你还可以给span指定样式。 二，用mb_substr() 函数 当你发现第一种方法无效时，可以用这一种 function z_substr&#40;$sourcestr='',$i=0,$cutlength=150,$endstr='...'&#41; &#123; $str_length=strlen&#40;$sourcestr&#41;;//字符串的字节数 while &#40;&#40;$n&#60;$cutlength&#41; and &#40;$i&#60;=$str_length&#41;&#41; &#123; $temp_str=substr&#40;$sourcestr,$i,1&#41;; $ascnum=Ord&#40;$temp_str&#41;;//ascii码 if &#40;$ascnum&#62;=224&#41; &#123; $returnstr=$returnstr.substr&#40;$sourcestr,$i,3&#41;; $i=$i+3; $n++; &#125;elseif &#40;$ascnum&#62;=192&#41; &#123; $returnstr=$returnstr.substr&#40;$sourcestr,$i,2&#41;; $i=$i+2; $n++; &#125;else &#123; $returnstr=$returnstr.substr&#40;$sourcestr,$i,1&#41;; $i=$i+1; $n=$n+0.5; &#125; &#125; if&#40;$i&#60;$str_length&#41;$returnstr.=$endstr; return $returnstr; &#125; 将上面的代码放到functions.php 里，然后用下面的代码调用 &#60;?php echo z_substr&#40;$sourcestr, $i, [...]]]></description> <content:encoded><![CDATA[<p>有利于<a
href="http://www.canfree.com/tag/seo"target="_blank"rel="nofollow"title="查看与[SEO]有关的文章" >SEO</a>的排版样式应该是标题+摘要，摘要可以在写文章时自己添加，也可以通过插件实现，但是插件对中文支持度不够友好。本人推荐用<a
href="http://www.wordpress.org"target="_blank"title="访问[wordpress]" >wordpress</a>自带的函数实现，轻量级且中英文支持良好。关于非插件文章截断，在以前的文章中也有介绍，今天重新整理并升级一下。<br
/> 一，用mb_strimwidth() 函数<br
/> 如果你的主机支持utf-8的话，这个函数是最佳的，调用代码为</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">&lt;span&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">mb_strimwidth</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span>apply_filters<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_content'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_content</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">150</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;...&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/span&gt;</pre></div></div><p>说明一下：0，表示从文章开头开始截图;150,截取到第150个字符；...，摘要末尾的样式。你还可以给span指定样式。<br
/> 二，用mb_substr() 函数<br
/> 当你发现第一种方法无效时，可以用这一种</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> z_substr<span style="color: #009900;">&#40;</span><span style="color: #000088;">$sourcestr</span><span style="color: #339933;">=</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #000088;">$cutlength</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">150</span><span style="color: #339933;">,</span><span style="color: #000088;">$endstr</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'...'</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$str_length</span><span style="color: #339933;">=</span><span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sourcestr</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//字符串的字节数</span>
	<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$n</span><span style="color: #339933;">&lt;</span><span style="color: #000088;">$cutlength</span><span style="color: #009900;">&#41;</span> and <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;=</span><span style="color: #000088;">$str_length</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$temp_str</span><span style="color: #339933;">=</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sourcestr</span><span style="color: #339933;">,</span><span style="color: #000088;">$i</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$ascnum</span><span style="color: #339933;">=</span><span style="color: #990000;">Ord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$temp_str</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//ascii码</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$ascnum</span><span style="color: #339933;">&gt;=</span><span style="color: #cc66cc;">224</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$returnstr</span><span style="color: #339933;">=</span><span style="color: #000088;">$returnstr</span><span style="color: #339933;">.</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sourcestr</span><span style="color: #339933;">,</span><span style="color: #000088;">$i</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #000088;">$i</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$n</span><span style="color: #339933;">++;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$ascnum</span><span style="color: #339933;">&gt;=</span><span style="color: #cc66cc;">192</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$returnstr</span><span style="color: #339933;">=</span><span style="color: #000088;">$returnstr</span><span style="color: #339933;">.</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sourcestr</span><span style="color: #339933;">,</span><span style="color: #000088;">$i</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #000088;">$i</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$n</span><span style="color: #339933;">++;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span>
		<span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$returnstr</span><span style="color: #339933;">=</span><span style="color: #000088;">$returnstr</span><span style="color: #339933;">.</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sourcestr</span><span style="color: #339933;">,</span><span style="color: #000088;">$i</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #000088;">$i</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$n</span><span style="color: #339933;">=</span><span style="color: #000088;">$n</span><span style="color: #339933;">+</span><span style="color:#800080;">0.5</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span><span style="color: #000088;">$str_length</span><span style="color: #009900;">&#41;</span><span style="color: #000088;">$returnstr</span><span style="color: #339933;">.=</span><span style="color: #000088;">$endstr</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$returnstr</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div><p>将上面的代码放到functions.php 里，然后用下面的代码调用</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> z_substr<span style="color: #009900;">&#40;</span><span style="color: #000088;">$sourcestr</span><span style="color: #339933;">,</span> <span style="color: #000088;">$i</span><span style="color: #339933;">,</span> <span style="color: #000088;">$cutlength</span><span style="color: #339933;">,</span> <span style="color: #000088;">$endstr</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div><p>最后将调用代码放到主题</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div><p>的下面即可。</p> ]]></content:encoded> <wfw:commentRss>http://www.canfree.com/wordpress-plug-in-implementation-of-non-english-strings-truncated.htm/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>不用插件实现wordpress相关文章功能</title><link>http://www.canfree.com/wordpress-plug-ins-do-not-achieve-the-function-of-related-articles.htm</link> <comments>http://www.canfree.com/wordpress-plug-ins-do-not-achieve-the-function-of-related-articles.htm#comments</comments> <pubDate>Fri, 08 Jan 2010 13:07:15 +0000</pubDate> <dc:creator>博优谷</dc:creator> <category><![CDATA[主题优化]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[YARPP]]></category> <category><![CDATA[代码]]></category> <category><![CDATA[技巧]]></category> <category><![CDATA[插件优化]]></category> <guid
isPermaLink="false">http://www.canfree.com/wordpress-plug-ins-do-not-achieve-the-function-of-related-articles.htm</guid> <description><![CDATA[给博客加上相关文章功能可以有效提高PV，也方便读者快速阅读。实现它很简单。可以用插件，推荐Yet Another Related Posts Plugin (YARPP)，优点： 可以设置显示相关文章的相关度门槛（高于此值才显示为相关文章）； 改进了查询相关度的算法，文章的分类和标签是计算相关度的参数； 可以在 RSS feed 中显示相关文章； 可以在文章后面自动插入相关文章。 其核心功能无非是要实现相关文章匹配，一样可以用代码实现，而且是根绝文章标签判断，加载更快，也能自定义CSS样式。 &#60;ol&#62;&#60;?php $tags = wp_get_post_tags($post-&#62;ID); if ($tags) { $first_tag = $tags[0]-&#62;term_id; $args=array( 'tag__in' =&#62; array($first_tag), 'post__not_in' =&#62; array($post-&#62;ID), 'showposts'=&#62;6, 'caller_get_posts'=&#62;1 ); $my_query = new WP_Query($args); if( $my_query-&#62;have_posts() ) { while ($my_query-&#62;have_posts()) : $my_query-&#62;the_post(); ?&#62; &#60;li&#62;&#60;a href=&#34;&#60;?php the_permalink() ?&#62;&#34; rel=&#34;bookmark&#34; title=&#34;Permanent Link to [...]]]></description> <content:encoded><![CDATA[<p>给博客加上相关文章功能可以有效提高PV，也方便读者快速阅读。实现它很简单。可以用插件，推荐<a
href="http://mitcho.com/code/yarpp/" target="_blank"><strong>Yet Another Related Posts Plugin</strong></a> (YARPP)，优点：</p><li>可以设置显示相关文章的相关度门槛（高于此值才显示为相关文章）；</li><li>改进了查询相关度的算法，文章的分类和标签是计算相关度的参数；</li><li>可以在 RSS feed 中显示相关文章；</li><li>可以在文章后面自动插入相关文章。</li><p>其核心功能无非是要实现相关文章匹配，一样可以用代码实现，而且是根绝文章标签判断，加载更快，也能自定义CSS样式。</p><div><pre>&lt;<span style="color: #800000">ol</span>&gt;&lt;?<span style="color: #800000">php</span>
$<span style="color: #800000">tags</span> = <span style="color: #800000">wp</span>_<span style="color: #800000">get</span>_<span style="color: #800000">post</span>_<span style="color: #800000">tags</span>($<span style="color: #800000">post-</span>&gt;<span style="color: #800000">ID</span>);
<span style="color: #800000">if</span> ($<span style="color: #800000">tags</span>) {
$<span style="color: #ff0000">first</span>_<span style="color: #0000ff">tag = $tags[0]-&gt;term_id</span>;
$<span style="color: #ff0000">args</span>=<span style="color: #0000ff">array(
'tag__in' =&gt; array($first_tag),
'post__not_in' =&gt; array($post-&gt;ID),
'showposts'=&gt;6,
'caller_get_posts'=&gt;1
)</span>;
$<span style="color: #ff0000">my</span>_<span style="color: #0000ff">query = new WP_Query($args)</span>;
<span style="color: #ff0000">if</span>( <span style="color: #0000ff">$my_query-&gt;have_posts() ) {
while ($my_query-&gt;have_posts()) : $my_query-&gt;the_post()</span>; ?&gt;
&lt;<span style="color: #ff0000">li</span>&gt;<span style="color: #0000ff">&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title_attribute()</span>; ?&gt;&quot;&gt;&lt;?<span style="color: #ff0000">php</span> <span style="color: #0000ff">the_title()</span>; ?&gt; &lt;?<span style="color: #ff0000">php</span> <span style="color: #0000ff">comments_number(' ','(1)','(%)')</span>; ?&gt;&lt;/<span style="color: #ff0000">a</span>&gt; <span style="color: #0000ff">&lt;/li&gt;
&lt;?php
endwhile</span>;
}
}
?&gt;
&lt;/<span style="color: #800000">ol</span>&gt;</pre></div><p>效果见本站各篇文章底部，如果有相关的标签即显示，没有的话为空。</p><p>可更改showposts的值，控制显示的数量，请自行测试。</p> ]]></content:encoded> <wfw:commentRss>http://www.canfree.com/wordpress-plug-ins-do-not-achieve-the-function-of-related-articles.htm/feed</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>在本机用WampServer调试WordPress</title><link>http://www.canfree.com/in-this-machine-wampserver-debugging-wordpress.htm</link> <comments>http://www.canfree.com/in-this-machine-wampserver-debugging-wordpress.htm#comments</comments> <pubDate>Mon, 04 Jan 2010 10:19:35 +0000</pubDate> <dc:creator>博优谷</dc:creator> <category><![CDATA[优化工具]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[WampServer]]></category> <category><![CDATA[工具]]></category> <category><![CDATA[调试]]></category> <guid
isPermaLink="false">http://www.canfree.com/in-this-machine-wampserver-debugging-wordpress-gong-lue.htm</guid> <description><![CDATA[本机调试PHP的工具有很多，直到发现了WampServer并试用后才发现相知恨晚。如果你是PHP程序爱好者，使用WordPress、joomla等系统的话，不要犹豫，赶紧下载WampServer为您的爱机增加Apache+PHP+MySQL功能。傻瓜式的工具，专家级的功能，不用不知道，一用忘不了。 最新版已包含 - Apache 2.2.11 - MySQL 5.1.36 - PHP 5.3.0 ，自带自带SQLitemanager和Phpmyadmin软件，满足所有的PHP程式。火星下载。操作步骤如下： 第一步，双击安装，默认路径是c:\wamp，一路NEXT，OK。 第二步，打开IE，输入http://localhost/phpmyadmin/，进入phpmyadmin设置页面。默认已是中文，点击菜单【权限】，给root创建一个密码。 第三步，进入c:\wamp\apps\phpmyadmin3.2.0.1目录，找到config.inc.php文件，编辑里面的$cfg['Servers'][$i]['password'] = ''; 为$cfg['Servers'][$i]['password'] = '这里填入刚才设置的密码';。保存。 第四步，刷新http://localhost/phpmyadmin/，已经可以正常登录了。点击【数据库】，为你的PHP程式新建一个数据库。 第五步，将最新的wordpress2.9文件拷贝到c:\wamp\www文件夹里。 第六步，打开IE，输入http://localhost/，即可看到wordpress安装页面。 至此，所有工作已经完成，今后就可以在本机调试好再上传到服务器了。至于WampServer强大的其它功能，暂时还用不到，需要的可以自己去百毒骨骼一下。]]></description> <content:encoded><![CDATA[<p><img
class="alignright" title="wampserver" src="http://www.wampserver.com/en/data/image_menu_wamp.gif" alt="image menu wamp 在本机用WampServer调试Wordpress" width="281" height="289" />本机调试PHP的工具有很多，直到发现了WampServer并试用后才发现相知恨晚。如果你是PHP程序爱好者，使用<a
href="http://www.wordpress.org"target="_blank"title="访问[wordpress]" >WordPress</a>、joomla等系统的话，不要犹豫，赶紧下载WampServer为您的爱机增加Apache+PHP+MySQL功能。傻瓜式的工具，专家级的功能，不用不知道，一用忘不了。</p><p>最新版已包含 - Apache 2.2.11 - MySQL 5.1.36 - PHP 5.3.0 ，自带自带SQLitemanager和Phpmyadmin软件，满足所有的PHP程式。<a
href="http://www.wampserver.com/en/download.php" target="_blank">火星下载</a>。操作步骤如下：<span
id="more-85"></span></p><p>第一步，双击安装，默认路径是c:\wamp，一路NEXT，OK。</p><p>第二步，打开IE，输入<a
title="http://localhost/phpmyadmin/" href="http://localhost/phpmyadmin/">http://localhost/phpmyadmin/</a>，进入phpmyadmin设置页面。默认已是中文，点击菜单【权限】，给root创建一个密码。</p><p>第三步，进入c:\wamp\apps\phpmyadmin3.2.0.1目录，找到config.inc.php文件，编辑里面的$cfg['Servers'][$i]['password'] = ''; 为$cfg['Servers'][$i]['password'] = '这里填入刚才设置的密码';。保存。</p><p>第四步，刷新<a
title="http://localhost/phpmyadmin/" href="http://localhost/phpmyadmin/">http://localhost/phpmyadmin/</a>，已经可以正常登录了。点击【数据库】，为你的PHP程式新建一个数据库。</p><p>第五步，将最新的wordpress2.9文件拷贝到c:\wamp\www文件夹里。</p><p>第六步，打开IE，输入<a
href="http://localhost/">http://localhost/</a>，即可看到wordpress安装页面。</p><p>至此，所有工作已经完成，今后就可以在本机调试好再上传到服务器了。至于WampServer强大的其它功能，暂时还用不到，需要的可以自己去百毒骨骼一下。</p> ]]></content:encoded> <wfw:commentRss>http://www.canfree.com/in-this-machine-wampserver-debugging-wordpress.htm/feed</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
