<?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://renniaofei.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://renniaofei.com</link>
	<description>任鸟飞网站设计博客是一个关注网页设计、网站建设、前端开发、美工设计、推广优化、网站博客赚钱、互联网趣味信息及搜素引擎等的原创设计类博客。海阔凭鱼跃，天高任鸟飞！</description>
	<lastBuildDate>Mon, 06 Feb 2012 11:32:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>网站可以正常访问，但header却返回 HTTP/1.1 404 Not Found，导致搜索引擎收录减少</title>
		<link>http://renniaofei.com/code/header-404-not-found/</link>
		<comments>http://renniaofei.com/code/header-404-not-found/#comments</comments>
		<pubDate>Sat, 19 Nov 2011 04:15:07 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[编码]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[IT技术]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[搜索引擎]]></category>
		<category><![CDATA[虚拟主机]]></category>

		<guid isPermaLink="false">http://renniaofei.com/?p=2898</guid>
		<description><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/code/header-404-not-found/" title="网站可以正常访问，但header却返回 HTTP/1.1 404 Not Found，导致搜索引擎收录减少"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/" alt="网站可以正常访问，但header却返回 HTTP/1.1 404 Not Found，导致搜索引擎收录减少" /></a>上午同学打电话过来，说网站出问题了，具体问题描述如下：网站所有页面均可以访问，但Google管理员工具中显示 404 Not Found错误，导致网站收录数大幅度减少，目前问题还没解决。 网站首页及其他动态页面（PHP）header返回200正常状态，但所有详细页面的 header 均返回 404 Not Found 错误。注：这个网站是用目前比较流行的网店程序ZenCart制作的。 为什么详细页面都可以访问，但却header返回 404 Not Found 错误？那位大侠知道怎么解决这个问题啊。 首页网址结构示例：http://domainname.com/ 详细页面 网址结构示例：http://domainname.com/product-123.html 我想了半天，感觉是 URL REWRITE 问题，因为所有动态页面均正常，只有伪静态的详细页面出问题。 2011年11月19日 Update 更新 问题描述：用zencart网站，使用了伪静态，检测全站的404页面时，发现除了首页外，其他页面（伪静态后的页面）都是返回404 的状态码，但是页面又能正常访问。 解决方法：是woz模块有问题，将includes/auto_loaders/config.woz.php 文件去掉就正常了。但具体什么原因我还是没有找到。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="谷歌在搜索结果中添加新的被黑网站提示" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Fnetwork%2Fnew-hacked-site-notifications-in-search-results%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/05/21156545.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">谷歌在搜索结果中添加新的被黑网站提示</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="2010年Google全球搜索引擎市场占有率攀升至85%" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finternet%2F2010-google-sousuoyinqing-quanqiushichang-bili-85%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/21163465.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">2010年Google全球搜索引擎市场占有率攀升至85%</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Meta 标签用法及 robots 搜索引擎索引方式" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Fcode%2Fmeta-robots-search-engine-gif%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/21162028.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Meta 标签用法及 robots 搜索引擎索引方式</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="友荐-网站相关文章智能推荐" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Ftuiguang%2Fyoujian%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/31/14526158.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">友荐-网站相关文章智能推荐</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="搜索引擎优化指南" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finternet%2Fbeginners-guide-to-seo%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/05/21171254.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">搜索引擎优化指南</font>
                    </a>
                </td>
        </tr>
        <br/>
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">来自无觅网络的相关文章：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="各大搜索引擎集体更新首页logo：喜迎元宵佳节" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.cninin.com%2Fsearch%2F6686.html&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/06/14836567.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">各大搜索引擎集体更新首页logo：喜迎元宵佳节 (@cninin)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="网站联盟防止作弊的常用方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.admpub.com%2Fpost-80.html&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/23/33495571.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">网站联盟防止作弊的常用方法 (@admpub)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="eclipse中插件CDT插件launch failed.Binary not found" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fflychen.com%2Farticle%2Feclipse%25E4%25B8%25AD%25E6%258F%2592%25E4%25BB%25B6cdt%25E6%258F%2592%25E4%25BB%25B6launch-failed-binary-not-found.html&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">eclipse中插件CDT插件launch failed.Binary not found (@flychen)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTTP 状态代码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.admpub.com%2Fpost-4.html&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/23/33495571.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">HTTP 状态代码 (@admpub)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="50个网页头部与网页页脚设计欣赏" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.shejidaren.com%2F%25E7%25BD%2591%25E9%25A1%25B5%25E5%25A4%25B4%25E9%2583%25A8%25E5%2592%258C%25E9%25A1%25B5%25E8%2584%259A%25E8%25AE%25BE%25E8%25AE%25A1.html&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/16/23028868.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">50个网页头部与网页页脚设计欣赏 (@shejidaren)</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/code/header-404-not-found/" title="网站可以正常访问，但header却返回 HTTP/1.1 404 Not Found，导致搜索引擎收录减少"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/" alt="网站可以正常访问，但header却返回 HTTP/1.1 404 Not Found，导致搜索引擎收录减少" /></a><p>上午同学打电话过来，说网站出问题了，具体问题描述如下：网站所有页面均可以访问，但Google管理员工具中显示 404 Not Found错误，导致网站收录数大幅度减少，目前问题还没解决。<span id="more-2898"></span></p>
<p>网站首页及其他动态页面（PHP）header返回200正常状态，但所有详细页面的 header 均返回 404 Not Found 错误。注：这个网站是用目前比较流行的网店程序<a href="http://renniaofei.com/internet/2-kaiyuan-duli-wangdian-chengxu/" target="_blank">ZenCart</a>制作的。</p>
<p><img class="alignnone size-full wp-image-2899" title="网站可以正常访问，但header却返回 HTTP/1.1 404 Not Found，导致搜索引擎收录减少" src="http://renniaofei.com/wp-content/uploads/2011/11/header-404-not-found.gif" alt="网站可以正常访问，但header却返回 HTTP/1.1 404 Not Found，导致搜索引擎收录减少" width="510" height="366" /></p>
<p>为什么详细页面都可以访问，但却header返回 404 Not Found 错误？那位大侠知道怎么解决这个问题啊。</p>
<p>首页网址结构示例：http://domainname.com/<br />
详细页面 网址结构示例：http://domainname.com/product-123.html</p>
<p>我想了半天，感觉是 URL <a href="http://renniaofei.com/tools/htaccess-url-rewriting-examples-htaccess/" target="_blank">REWRITE</a> 问题，因为所有动态页面均正常，只有伪静态的详细页面出问题。</p>
<h4>2011年11月19日 Update 更新</h4>
<p>问题描述：用zencart网站，使用了伪静态，检测全站的404页面时，发现除了首页外，其他页面（伪静态后的页面）都是返回404 的状态码，但是页面又能正常访问。</p>
<p>解决方法：是woz模块有问题，将includes/auto_loaders/config.woz.php 文件去掉就正常了。但具体什么原因我还是没有找到。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="谷歌在搜索结果中添加新的被黑网站提示" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Fnetwork%2Fnew-hacked-site-notifications-in-search-results%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/05/21156545.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">谷歌在搜索结果中添加新的被黑网站提示</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="2010年Google全球搜索引擎市场占有率攀升至85%" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finternet%2F2010-google-sousuoyinqing-quanqiushichang-bili-85%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/21163465.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">2010年Google全球搜索引擎市场占有率攀升至85%</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Meta 标签用法及 robots 搜索引擎索引方式" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Fcode%2Fmeta-robots-search-engine-gif%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/21162028.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Meta 标签用法及 robots 搜索引擎索引方式</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="友荐-网站相关文章智能推荐" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Ftuiguang%2Fyoujian%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/31/14526158.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">友荐-网站相关文章智能推荐</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="搜索引擎优化指南" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finternet%2Fbeginners-guide-to-seo%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/05/21171254.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">搜索引擎优化指南</font>
                    </a>
                </td>
        </tr>
        <br/>
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">来自无觅网络的相关文章：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="各大搜索引擎集体更新首页logo：喜迎元宵佳节" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.cninin.com%2Fsearch%2F6686.html&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/06/14836567.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">各大搜索引擎集体更新首页logo：喜迎元宵佳节 (@cninin)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="网站联盟防止作弊的常用方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.admpub.com%2Fpost-80.html&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/23/33495571.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">网站联盟防止作弊的常用方法 (@admpub)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="eclipse中插件CDT插件launch failed.Binary not found" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fflychen.com%2Farticle%2Feclipse%25E4%25B8%25AD%25E6%258F%2592%25E4%25BB%25B6cdt%25E6%258F%2592%25E4%25BB%25B6launch-failed-binary-not-found.html&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">eclipse中插件CDT插件launch failed.Binary not found (@flychen)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTTP 状态代码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.admpub.com%2Fpost-4.html&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/23/33495571.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">HTTP 状态代码 (@admpub)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="50个网页头部与网页页脚设计欣赏" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.shejidaren.com%2F%25E7%25BD%2591%25E9%25A1%25B5%25E5%25A4%25B4%25E9%2583%25A8%25E5%2592%258C%25E9%25A1%25B5%25E8%2584%259A%25E8%25AE%25BE%25E8%25AE%25A1.html&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fheader-404-not-found%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/16/23028868.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">50个网页头部与网页页脚设计欣赏 (@shejidaren)</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://renniaofei.com/code/header-404-not-found/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>你还在用Flash做网站吗？</title>
		<link>http://renniaofei.com/internet/flash-web-design/</link>
		<comments>http://renniaofei.com/internet/flash-web-design/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 14:28:05 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[网络]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://renniaofei.com/?p=2877</guid>
		<description><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/internet/flash-web-design/" title="你还在用Flash做网站吗？"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/" alt="你还在用Flash做网站吗？" /></a>前几年，韩国酷站大行其道，这些韩国酷站大多采用Flash制作，或部分采用Flash，现在我已经很少看韩国酷站了，更多的是关注欧美酷站，而且Flash在网页设计中所占的比重也越来越少，而我也好几年都没看Flash相关的教程，个人感觉Flash正在逐步消亡，至少在网页设计领域。 目前很多流行的Javascript库，像mootool，JQuery等，已经完全可以满足网页特效方面的应用，而且使用方式简单。 建议网页设计初学者就不要学习Flash了，可以先从Javascript语言入手，以后逐步扩展到PHP等。另外ASP也是一门过时的语言，推荐学习PHP。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="国外免费的第三方图片分享托管网站" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finternet%2Fguowai-mianfei-disanfang-tupian-fenxiang-tuoguan-wangzhan%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/23/2858876.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">国外免费的第三方图片分享托管网站</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="网站推广独立博客大全" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finternet%2Fwangzhan-tuiguang-duli-boke-daquan%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/21171164.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">网站推广独立博客大全</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="国内网站建设、网页设计公司Top40" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Fdesign%2Fguonei-wangzhanjianshe-wangyesheji-gongsi-top40%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/05/21157037.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">国内网站建设、网页设计公司Top40</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="友荐-网站相关文章智能推荐" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Ftuiguang%2Fyoujian%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/31/14526158.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">友荐-网站相关文章智能推荐</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="iPhoneMobi.com 南北互联太慢，虚拟主机升级到多线路" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finternet%2Fiphonemobi-nanbei-hulian-shengji-duoxianlu%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/22437740.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">iPhoneMobi.com 南北互联太慢，虚拟主机升级到多线路</font>
                    </a>
                </td>
        </tr>
        <br/>
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">来自无觅网络的相关文章：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="XML Flash网站源码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.99psn.com%2F2770.html&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/26/9850772.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">XML Flash网站源码 (@99psn)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="25个免费的flash网站模板下载" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsudasuta.com%2F%3Fp%3D601&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/27/19218874.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">25个免费的flash网站模板下载 (@sudasuta)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="50个你一定要看到的超级华丽的Flash网站" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsudasuta.com%2F471.html&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/27/19226774.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">50个你一定要看到的超级华丽的Flash网站 (@sudasuta)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="30个华丽的Flash网站设计" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsudasuta.com%2F%3Fp%3D961&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/27/19227477.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">30个华丽的Flash网站设计 (@sudasuta)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="33个flash载入页面设计分享" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsudasuta.com%2F1877.html&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/27/19217106.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">33个flash载入页面设计分享 (@sudasuta)</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/internet/flash-web-design/" title="你还在用Flash做网站吗？"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/" alt="你还在用Flash做网站吗？" /></a><p>前几年，韩国酷站大行其道，这些<a href="http://renniaofei.com/tag/korea-website-showcase/" target="_blank">韩国酷站</a>大多采用Flash制作，或部分采用Flash，现在我已经很少看韩国酷站了，更多的是关注欧美酷站，而且Flash在网页设计中所占的比重也越来越少，而我也好几年都没看Flash相关的教程，个人感觉Flash正在逐步消亡，至少在网页设计领域。<span id="more-2877"></span></p>
<p>目前很多流行的Javascript库，像mootool，<a href="http://renniaofei.com/tag/jquery/" target="_blank">JQuery</a>等，已经完全可以满足网页特效方面的应用，而且使用方式简单。</p>
<p>建议网页设计初学者就不要学习Flash了，可以先从<a href="http://renniaofei.com/tag/javascript/" target="_blank">Javascript</a>语言入手，以后逐步扩展到<a href="http://renniaofei.com/tag/php/" target="_blank">PHP</a>等。另外ASP也是一门过时的语言，推荐学习PHP。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="国外免费的第三方图片分享托管网站" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finternet%2Fguowai-mianfei-disanfang-tupian-fenxiang-tuoguan-wangzhan%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/23/2858876.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">国外免费的第三方图片分享托管网站</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="网站推广独立博客大全" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finternet%2Fwangzhan-tuiguang-duli-boke-daquan%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/21171164.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">网站推广独立博客大全</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="国内网站建设、网页设计公司Top40" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Fdesign%2Fguonei-wangzhanjianshe-wangyesheji-gongsi-top40%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/05/21157037.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">国内网站建设、网页设计公司Top40</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="友荐-网站相关文章智能推荐" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Ftuiguang%2Fyoujian%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/31/14526158.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">友荐-网站相关文章智能推荐</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="iPhoneMobi.com 南北互联太慢，虚拟主机升级到多线路" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finternet%2Fiphonemobi-nanbei-hulian-shengji-duoxianlu%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/22437740.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">iPhoneMobi.com 南北互联太慢，虚拟主机升级到多线路</font>
                    </a>
                </td>
        </tr>
        <br/>
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">来自无觅网络的相关文章：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="XML Flash网站源码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.99psn.com%2F2770.html&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/26/9850772.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">XML Flash网站源码 (@99psn)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="25个免费的flash网站模板下载" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsudasuta.com%2F%3Fp%3D601&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/27/19218874.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">25个免费的flash网站模板下载 (@sudasuta)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="50个你一定要看到的超级华丽的Flash网站" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsudasuta.com%2F471.html&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/27/19226774.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">50个你一定要看到的超级华丽的Flash网站 (@sudasuta)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="30个华丽的Flash网站设计" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsudasuta.com%2F%3Fp%3D961&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/27/19227477.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">30个华丽的Flash网站设计 (@sudasuta)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="33个flash载入页面设计分享" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsudasuta.com%2F1877.html&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fflash-web-design%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/27/19217106.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">33个flash载入页面设计分享 (@sudasuta)</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://renniaofei.com/internet/flash-web-design/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP如何保留2位小数？</title>
		<link>http://renniaofei.com/code/php2-wei-xiaosh/</link>
		<comments>http://renniaofei.com/code/php2-wei-xiaosh/#comments</comments>
		<pubDate>Sun, 21 Aug 2011 03:02:24 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[编码]]></category>
		<category><![CDATA[Datebase]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://renniaofei.com/?p=2692</guid>
		<description><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/code/php2-wei-xiaosh/" title="PHP如何保留2位小数？"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/" alt="PHP如何保留2位小数？" /></a>只爱美人 zhiaimeiren.com 网站是基于 PHP 和 MySQL 搭建起来，之前显示的价格信息都是整数，我在产品提交页面输入2位小数也没用，昨天绕了好大一个弯，不过最终还是解决了。 PHP中有2种保留小数位数的函数，一个是 round()，另一个是 number_format()，round() 会四舍五入，而number_format()主要是规定数据显示样式。 保留2位小数实例 方法1： &#60;?php echo round(1.95583, 2);  // 1.96 ?&#62; 方法2：&#60;?php echo number_format(1234.5678, 2, &#8217;.', ”);  //1234.57 ?&#62; 我按照上面的方法试过之后，价格显示出来的还是整数，后来看了一下数据库中的内容，价格也是整数，想了半天，后来总算恍然大悟，原来是 product 表中的 product_price 字段类型设置成了 int 型，后来抓紧改成 float 型，问题迎刃而解。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="使用PHP备份MySQL数据库" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Fcode%2Fusing-php-to-backup-mysql-databases%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/21161926.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用PHP备份MySQL数据库</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="优化SQL语句，提高数据库执行效率的8条建议" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Fcode%2F8-useful-tips-to-optimize-and-speed-up-your-website-database%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/21161932.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">优化SQL语句，提高数据库执行效率的8条建议</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="提高WordPress安全性必须掌握的5种方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Fcode%2Ftop-5-wordpress-security-tips%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/21161903.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">提高WordPress安全性必须掌握的5种方法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[悲剧] PHP $_SESSION 在多个页面之间传递问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp-session-yemian-chuanzhi-wenti%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/21157417.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[悲剧] PHP $_SESSION 在多个页面之间传递问题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Windows 环境下 PHPnow套件 一键安装 Apache + PHP + MySQL" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/05/21156386.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Windows 环境下 PHPnow套件 一键安装 Apache + PHP + MySQL</font>
                    </a>
                </td>
        </tr>
        <br/>
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">来自无觅网络的相关文章：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="PHP又有重大漏洞 多语言拒绝服务漏洞事件预警" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.cninin.com%2Fsoftware%2F6657.html&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/04/14734733.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP又有重大漏洞 多语言拒绝服务漏洞事件预警 (@cninin)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PHP header 重定向 UTF-8编码 报错" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.buicaa.com%2Farticle%2Fphp-header-redirect%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/08/10441549.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP header 重定向 UTF-8编码 报错 (@buicaa)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PHP语法入门篇" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wozhutou.com%2Farchives%2F264.html&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/12/10/12136355.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP语法入门篇 (@wozhutou)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PHP与浏览器端编程语言" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wozhutou.com%2Farchives%2F289.html&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/12/18/12502027.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP与浏览器端编程语言 (@wozhutou)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PHP数据库操作类NotORM中文手册" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.admpub.com%2Fblog%2F%3Fpost%3D201&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/23/33495571.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP数据库操作类NotORM中文手册 (@admpub)</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/code/php2-wei-xiaosh/" title="PHP如何保留2位小数？"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/" alt="PHP如何保留2位小数？" /></a><p>只爱美人 <a href="http://zhiaimeiren.com" target="_blank">zhiaimeiren.com</a> 网站是基于 <a href="http://renniaofei.com/tag/php/" target="_blank">PHP</a> 和 <a href="http://renniaofei.com/tag/sql/" target="_blank">MySQL</a> 搭建起来，之前显示的价格信息都是整数，我在产品提交页面输入2位小数也没用，昨天绕了好大一个弯，不过最终还是解决了。<span id="more-2692"></span></p>
<p>PHP中有2种保留小数位数的函数，一个是 <a href="http://php.net/manual/en/function.round.php" target="_blank">round()</a>，另一个是 <a href="http://php.net/manual/en/function.number-format.php" target="_blank">number_format()</a>，round() 会四舍五入，而number_format()主要是规定数据显示样式。</p>
<h4>保留2位小数实例</h4>
<p>方法1： &lt;?php echo round(1.95583, 2);  // 1.96<br />
?&gt;</p>
<p>方法2：&lt;?php echo number_format(1234.5678, 2, &#8217;.', ”);  //1234.57<br />
?&gt;</p>
<p>我按照上面的方法试过之后，价格显示出来的还是整数，后来看了一下数据库中的内容，价格也是整数，想了半天，后来总算恍然大悟，原来是 product 表中的 product_price 字段类型设置成了 int 型，后来抓紧改成 float 型，问题迎刃而解。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="使用PHP备份MySQL数据库" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Fcode%2Fusing-php-to-backup-mysql-databases%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/21161926.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用PHP备份MySQL数据库</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="优化SQL语句，提高数据库执行效率的8条建议" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Fcode%2F8-useful-tips-to-optimize-and-speed-up-your-website-database%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/21161932.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">优化SQL语句，提高数据库执行效率的8条建议</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="提高WordPress安全性必须掌握的5种方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Fcode%2Ftop-5-wordpress-security-tips%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/21161903.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">提高WordPress安全性必须掌握的5种方法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[悲剧] PHP $_SESSION 在多个页面之间传递问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp-session-yemian-chuanzhi-wenti%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/21157417.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[悲剧] PHP $_SESSION 在多个页面之间传递问题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Windows 环境下 PHPnow套件 一键安装 Apache + PHP + MySQL" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/05/21156386.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Windows 环境下 PHPnow套件 一键安装 Apache + PHP + MySQL</font>
                    </a>
                </td>
        </tr>
        <br/>
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">来自无觅网络的相关文章：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="PHP又有重大漏洞 多语言拒绝服务漏洞事件预警" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.cninin.com%2Fsoftware%2F6657.html&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/04/14734733.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP又有重大漏洞 多语言拒绝服务漏洞事件预警 (@cninin)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PHP header 重定向 UTF-8编码 报错" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.buicaa.com%2Farticle%2Fphp-header-redirect%2F&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/11/08/10441549.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP header 重定向 UTF-8编码 报错 (@buicaa)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PHP语法入门篇" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wozhutou.com%2Farchives%2F264.html&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/12/10/12136355.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP语法入门篇 (@wozhutou)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PHP与浏览器端编程语言" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wozhutou.com%2Farchives%2F289.html&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/12/18/12502027.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP与浏览器端编程语言 (@wozhutou)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PHP数据库操作类NotORM中文手册" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.admpub.com%2Fblog%2F%3Fpost%3D201&from=http%3A%2F%2Frenniaofei.com%2Fcode%2Fphp2-wei-xiaosh%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/23/33495571.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP数据库操作类NotORM中文手册 (@admpub)</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://renniaofei.com/code/php2-wei-xiaosh/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows 环境下 PHPnow套件 一键安装 Apache + PHP + MySQL</title>
		<link>http://renniaofei.com/internet/phpnow-apache-php-mysql/</link>
		<comments>http://renniaofei.com/internet/phpnow-apache-php-mysql/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 14:04:06 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[网络]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[中文独立博客]]></category>

		<guid isPermaLink="false">http://www.renniaofei.com/?p=2659</guid>
		<description><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/internet/phpnow-apache-php-mysql/" title="Windows 环境下 PHPnow套件 一键安装 Apache + PHP + MySQL"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/" alt="Windows 环境下 PHPnow套件 一键安装 Apache + PHP + MySQL" /></a>由于 WordPress 3.2.1 要求 PHP 版本至少 5.2.4，没办法，只能升级本机的PHP版本，由于之前也是采用一键安装，对PHP具体的安装方法也不是很了解，所以升级过程中出现了太多问题，后来只好将以前的 Apache + PHP + MySQL 删掉，然后重新安装了PHPnow（http://phpnow.org/）。 在安装 PHPnow 过程中也出现了好多问题，罗列如下： 1.  系统原有的 Apache 和 MySQL 系统服务没有停止，导致安装失败，解决办法：使用命令 “sc delete 服务名”，如果服务名有空格，则服务名需加引号。 2. Vista和Windows 7用户需要使用管理员权限打开CMD.EXE，否则安装过程中会提示权限不够。 3. 需要学会几条简单的 doc命令。比如说 从C盘跳到F盘根目录( doc命令为 F:)，从F盘根目录跳转到Program Files目录（CD Program Files）,执行程序（程序名）。 4.Apache 网站根目录设置，正常情况下需到 Apache 下的 conf 目录找到文件httpd.conf，打开找到DocumentRoot “../htdocs” 和 &#60;Directory “../htdocs”&#62; 两行， 然后修改为你网站所在的目录。但我试过之后，网站根目录没有改变，现在我也不知道为什么，只好网站内容COPY到htdocs目录里。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress 3.2.1 要求 PHP 版本至少 5.2.4" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finternet%2Fwordpress-3-2-1-php-5-2-4%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/21308327.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.2.1 要求 PHP 版本至少 5.2.4</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="祭奠中文独立博客的先驱们" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finternet%2Fjidian-zhongwen-duli-boke-xianqu%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/05/21171180.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">祭奠中文独立博客的先驱们</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用PHP备份MySQL数据库" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Fcode%2Fusing-php-to-backup-mysql-databases%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/21161926.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用PHP备份MySQL数据库</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="中文技术类博客的悲哀" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finternet%2Fzhongwen-jishu-lei-boke-beiai%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/05/21185066.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">中文技术类博客的悲哀</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="互联网技术领域10个最具影响力的中文独立博客" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finspiration%2Fmost-popular-chinese-blog-related-with-internet-technology%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/05/21170199.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">互联网技术领域10个最具影响力的中文独立博客</font>
                    </a>
                </td>
        </tr>
        <br/>
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">来自无觅网络的相关文章：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="PHP又有重大漏洞 多语言拒绝服务漏洞事件预警" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.cninin.com%2Fsoftware%2F6657.html&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/04/14734733.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP又有重大漏洞 多语言拒绝服务漏洞事件预警 (@cninin)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Windows 2003+Apache=多站点" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.citydog.me%2F582.html&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/16/12697031.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Windows 2003+Apache=多站点 (@citydog)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PHP数据库操作类NotORM中文手册" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.admpub.com%2F%3Fpost%3D201&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/20/14188873.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP数据库操作类NotORM中文手册 (@admpub)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="由Windows向Linux搬家中遇到的问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.citydog.me%2F734.html&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/16/12695331.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">由Windows向Linux搬家中遇到的问题 (@citydog)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="apache无响应的实例分析" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.shrekwang.com%2Farticle%2F295004%2Fapache%25E6%2597%25A0%25E5%2593%258D%25E5%25BA%2594%25E7%259A%2584%25E5%25AE%259E%25E4%25BE%258B%25E5%2588%2586%25E6%259E%2590&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/03/20345178.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">apache无响应的实例分析 (@shrekwang)</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/internet/phpnow-apache-php-mysql/" title="Windows 环境下 PHPnow套件 一键安装 Apache + PHP + MySQL"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/" alt="Windows 环境下 PHPnow套件 一键安装 Apache + PHP + MySQL" /></a><p>由于 <a href="http://www.renniaofei.com/internet/wordpress-3-2-1-php-5-2-4/" target="_blank">WordPress 3.2.1 要求 PHP 版本至少 5.2.4</a>，没办法，只能升级本机的PHP版本，由于之前也是采用一键安装，对PHP具体的安装方法也不是很了解，所以升级过程中出现了太多问题，后来只好将以前的 Apache + PHP + MySQL 删掉，然后重新安装了<a href="http://phpnow.org/" target="_blank">PHPnow</a>（http://phpnow.org/）。<span id="more-2659"></span></p>
<p>在安装 <a href="http://phpnow.org/" target="_blank">PHPnow</a> 过程中也出现了好多问题，罗列如下：</p>
<p>1.  系统原有的 Apache 和 MySQL 系统服务没有停止，导致安装失败，解决办法：使用命令 “sc delete 服务名”，如果服务名有空格，则服务名需加引号。</p>
<p>2. Vista和Windows 7用户需要使用管理员权限打开CMD.EXE，否则安装过程中会提示权限不够。</p>
<p>3. 需要学会几条简单的 doc命令。比如说 从C盘跳到F盘根目录( doc命令为 F:)，从F盘根目录跳转到Program Files目录（CD Program Files）,执行程序（程序名）。</p>
<p><img class="size-full wp-image-2661" title="Windows 环境下 PHPnow套件 一键安装 Apache + PHP + MySQL" src="http://www.renniaofei.com/wp-content/uploads/2011/08/phpnow-apache-php-mysql-doc.gif" alt="Windows 环境下 PHPnow套件 一键安装 Apache + PHP + MySQL" width="328" height="170" /></p>
<p>4.Apache 网站根目录设置，正常情况下需到 Apache 下的 conf 目录找到文件httpd.conf，打开找到DocumentRoot “../htdocs” 和 &lt;Directory “../htdocs”&gt; 两行， 然后修改为你网站所在的目录。但我试过之后，网站根目录没有改变，现在我也不知道为什么，只好网站内容COPY到htdocs目录里。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress 3.2.1 要求 PHP 版本至少 5.2.4" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finternet%2Fwordpress-3-2-1-php-5-2-4%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/21308327.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.2.1 要求 PHP 版本至少 5.2.4</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="祭奠中文独立博客的先驱们" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finternet%2Fjidian-zhongwen-duli-boke-xianqu%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/05/21171180.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">祭奠中文独立博客的先驱们</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用PHP备份MySQL数据库" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Fcode%2Fusing-php-to-backup-mysql-databases%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/21161926.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用PHP备份MySQL数据库</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="中文技术类博客的悲哀" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finternet%2Fzhongwen-jishu-lei-boke-beiai%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/05/21185066.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">中文技术类博客的悲哀</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="互联网技术领域10个最具影响力的中文独立博客" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Frenniaofei.com%2Finspiration%2Fmost-popular-chinese-blog-related-with-internet-technology%2F&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/05/21170199.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">互联网技术领域10个最具影响力的中文独立博客</font>
                    </a>
                </td>
        </tr>
        <br/>
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">来自无觅网络的相关文章：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="PHP又有重大漏洞 多语言拒绝服务漏洞事件预警" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.cninin.com%2Fsoftware%2F6657.html&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/04/14734733.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP又有重大漏洞 多语言拒绝服务漏洞事件预警 (@cninin)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Windows 2003+Apache=多站点" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.citydog.me%2F582.html&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/16/12697031.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Windows 2003+Apache=多站点 (@citydog)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PHP数据库操作类NotORM中文手册" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.admpub.com%2F%3Fpost%3D201&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/20/14188873.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP数据库操作类NotORM中文手册 (@admpub)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="由Windows向Linux搬家中遇到的问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.citydog.me%2F734.html&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/16/12695331.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">由Windows向Linux搬家中遇到的问题 (@citydog)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="apache无响应的实例分析" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.shrekwang.com%2Farticle%2F295004%2Fapache%25E6%2597%25A0%25E5%2593%258D%25E5%25BA%2594%25E7%259A%2584%25E5%25AE%259E%25E4%25BE%258B%25E5%2588%2586%25E6%259E%2590&from=http%3A%2F%2Frenniaofei.com%2Finternet%2Fphpnow-apache-php-mysql%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/03/20345178.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">apache无响应的实例分析 (@shrekwang)</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://renniaofei.com/internet/phpnow-apache-php-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[悲剧] PHP $_SESSION 在多个页面之间传递问题</title>
		<link>http://renniaofei.com/code/php-session-yemian-chuanzhi-wenti/</link>
		<comments>http://renniaofei.com/code/php-session-yemian-chuanzhi-wenti/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 14:37:59 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[编码]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.renniaofei.com/?p=2427</guid>
		<description><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/code/php-session-yemian-chuanzhi-wenti/" title="[悲剧] PHP $_SESSION 在多个页面之间传递问题"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/http://www.renniaofei.com/wp-content/uploads/2011/04/php-logo.gif" alt="[悲剧] PHP $_SESSION 在多个页面之间传递问题" /></a>最近正在搞一个新的网站，晚上编写有关用户登录部分的代码，考虑到手机用户比较多，对 cookie 的支持不是很好，就采用了 PHP $_SESSION 方法来在各个页面之间传递数值，悲剧发生了。 错误代码截取 session_start(); $_session["user_login"] = $user_login; 你能发现上面的错误吗？在这个页面中输出 echo $_session["user_login"]; 完全没有问题，但等我转到其他页面，再要取 $_session["user_login"] 这个值的话，就取不到了。 我是费了九牛二虎之力啊，能用的方法都用了，配置文件 php.inc都被我改的面目全非了，但还是不起作用，2个多小时过去了，还是无解啊。 正当我一筹莫展的时候，突然灵感一现，他奶奶的，原来是$_SESSION大小写不对……，改成下面这样才可以。 session_start(); $_SESSION["user_login"] = $user_login; 我晕，撞死算了……]]></description>
			<content:encoded><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/code/php-session-yemian-chuanzhi-wenti/" title="[悲剧] PHP $_SESSION 在多个页面之间传递问题"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/http://www.renniaofei.com/wp-content/uploads/2011/04/php-logo.gif" alt="[悲剧] PHP $_SESSION 在多个页面之间传递问题" /></a><p>最近正在搞一个新的<a href="http://www.renniaofei.com/tag/chinese-independent-blog/">网站</a>，晚上编写有关用户登录部分的代码，考虑到<a href="http://www.renniaofei.com/tag/iphone/">手机</a>用户比较多，对 cookie 的支持不是很好，就采用了 <a href="http://www.renniaofei.com/tag/php/">PHP </a>$_SESSION 方法来在各个页面之间传递数值，悲剧发生了。<span id="more-2427"></span></p>
<h4>错误代码截取</h4>
<pre><code>session_start();
$_session["user_login"] = $user_login;</code></pre>
<p>你能发现上面的错误吗？在这个页面中输出 echo $_session["user_login"]; 完全没有问题，但等我转到其他页面，再要取 $_session["user_login"] 这个值的话，就取不到了。</p>
<p>我是费了九牛二虎之力啊，能用的方法都用了，配置文件 php.inc都被我改的面目全非了，但还是不起作用，2个多小时过去了，还是无解啊。</p>
<p>正当我一筹莫展的时候，突然灵感一现，他奶奶的，原来是$_SESSION大小写不对……，改成下面这样才可以。</p>
<pre><code>session_start();
$_SESSION["user_login"] = $user_login;</code></pre>
<p>我晕，撞死算了……</p>
]]></content:encoded>
			<wfw:commentRss>http://renniaofei.com/code/php-session-yemian-chuanzhi-wenti/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>使用PHP来压缩CSS文件</title>
		<link>http://renniaofei.com/code/shiyong-php-yasuo-css/</link>
		<comments>http://renniaofei.com/code/shiyong-php-yasuo-css/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 13:51:32 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[编码]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://www.renniaofei.com/?p=1799</guid>
		<description><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/code/shiyong-php-yasuo-css/" title="使用PHP来压缩CSS文件"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/http://www.renniaofei.com/wp-content/uploads/2010/09/shiyong-php-yasuo-css-thumbnail.jpg" alt="使用PHP来压缩CSS文件" /></a>减少CSS文件的大小能有效减少页面的加载时间，改善用户体验。本文将介绍一种利用php来压缩CSS文件的方法。 新建css-compress.php文件 header('Content-type: text/css'); ob_start("compress"); function compress($buffer) { /* remove comments */ $buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer); /* 清楚 tabs, 空格, 新行, 等. */ $buffer = str_replace(array("\r\n", "\r", "\n", "\t", ' ', ' ', ' '), '', $buffer); return $buffer; } /* 所有的CSS文件 */ include('master.css'); include('typography.css'); include('grid.css'); include('print.css'); include('handheld.css'); ob_end_flush(); 使用方法 1. 在浏览器中打开上面的 css-compress.php 文件，即可输出压缩后的CSS源代码，保存即可。【推荐】 [...]]]></description>
			<content:encoded><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/code/shiyong-php-yasuo-css/" title="使用PHP来压缩CSS文件"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/http://www.renniaofei.com/wp-content/uploads/2010/09/shiyong-php-yasuo-css-thumbnail.jpg" alt="使用PHP来压缩CSS文件" /></a><p>减少CSS文件的大小能有效减少页面的加载时间，改善用户体验。本文将介绍一种利用php来压缩CSS文件的方法。<span id="more-1799"></span></p>
<h4>新建css-compress.php文件</h4>
<pre><code>header('Content-type: text/css');
ob_start("compress");
function compress($buffer) {
  /* remove comments */
  $buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer);
  /* 清楚 tabs, 空格, 新行, 等. */
  $buffer = str_replace(array("\r\n", "\r", "\n", "\t", '  ', '    ', '    '), '', $buffer);
  return $buffer;
}

/* 所有的CSS文件 */
include('master.css');
include('typography.css');
include('grid.css');
include('print.css');
include('handheld.css');

ob_end_flush();</code></pre>
<h4>使用方法</h4>
<p>1. 在浏览器中打开上面的 css-compress.php 文件，即可输出压缩后的CSS源代码，保存即可。【推荐】<br />
2. 直接调用css-compress文件，代码如下：【不推荐】</p>
<pre><code>&lt;link rel="stylesheet" href="css-compress.php" type="text/css" media="all"&gt;
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://renniaofei.com/code/shiyong-php-yasuo-css/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>WordPress 摘要输出原理分析</title>
		<link>http://renniaofei.com/design/wordpress-the-content-yuanli-fenxi/</link>
		<comments>http://renniaofei.com/design/wordpress-the-content-yuanli-fenxi/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 15:12:16 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[编码]]></category>
		<category><![CDATA[设计]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[WordPress 教程]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://www.renniaofei.com/?p=1586</guid>
		<description><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/design/wordpress-the-content-yuanli-fenxi/" title="WordPress 摘要输出原理分析"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/http://www.renniaofei.com/wp-content/uploads/2010/01/wordpress-excerpt-thumbnail.jpg" alt="WordPress 摘要输出原理分析" /></a>曾在 如何在WordPress显示文章摘要 一文中介绍过如何使用the_excerpt() 和 the_content() 来输出文章摘要。但对于摘要输出的原理却没做深入的分析，摘要输出不仅仅用在WordPress博客上，日常接触到的很多项目也都要求使用摘要输出，因此有必要掌握其原理。 WordPress 在数据库架构、文件体系、代码编写等方面有很多值得我们学习的地方，这里就通过分析Wordpress 的 the_content()函数来分析摘要输出的原理。 the_content()的用法实例： &#60;?php the_content('Read more...'); ?&#62; 使用WordPress的博主都知道，Wordpress使用分隔符 “&#60;!&#8211;more&#8211;&#62;”（不含引号）来分割文章内容，通过调用the_content()函数， “&#60;!&#8211;more&#8211;&#62;”之间的文章内容将以摘要的形式输出。 通过上述分析，我们可以得出，WordPress 摘要输出原理如下： 首先在文章内容插入分隔符“&#60;!&#8211;more&#8211;&#62;”。 然后通过 the_content() 来输出分隔符&#60;!&#8211;more&#8211;&#62;之前的内容。 如何实现上述原理？下面以一个实例来说明： // 获取&#60;!--more--&#62;的位置 $theEndPosition=strrpos($post_content, '&#60;!--more--&#62;'); // 输出指定位置之前的内容 echo substr($post_content,0,$theEndPosition); 总结：只需要简单的调用PHP的strrpos和substr函数，即可实现指定分隔符之前的内容，也即摘要输出。]]></description>
			<content:encoded><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/design/wordpress-the-content-yuanli-fenxi/" title="WordPress 摘要输出原理分析"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/http://www.renniaofei.com/wp-content/uploads/2010/01/wordpress-excerpt-thumbnail.jpg" alt="WordPress 摘要输出原理分析" /></a><p>曾在 <a href="http://www.renniaofei.com/code/the_excerpt-vs-the_content-wordpress/">如何在WordPress显示文章摘要</a> 一文中介绍过如何使用the_excerpt() 和 the_content() 来输出文章摘要。但对于摘要输出的原理却没做深入的分析，摘要输出不仅仅用在<a href="http://www.renniaofei.com/tag/wordpress-tutorials/">WordPress博客</a>上，日常接触到的很多项目也都要求使用摘要输出，因此有必要掌握其原理。<span id="more-1586"></span></p>
<p>WordPress 在<a href="http://www.renniaofei.com/tag/datebase/">数据库架构</a>、文件体系、<a href="http://www.renniaofei.com/category/code/">代码编写</a>等方面有很多值得我们学习的地方，这里就通过分析Wordpress 的 the_content()函数来分析摘要输出的原理。</p>
<h4>the_content()的用法实例：</h4>
<pre><code>&lt;?php the_content('Read more...'); ?&gt;</code></pre>
<p>使用<a href="http://www.renniaofei.com/tag/chinese-independent-blog/">WordPress的博主</a>都知道，Wordpress使用分隔符 “&lt;!&#8211;more&#8211;&gt;”（不含引号）来分割文章内容，通过调用the_content()函数，  “&lt;!&#8211;more&#8211;&gt;”之间的文章内容将以摘要的形式输出。</p>
<h4>通过上述分析，我们可以得出，WordPress 摘要输出原理如下：</h4>
<ol>
<li>首先在文章内容插入分隔符“&lt;!&#8211;more&#8211;&gt;”。</li>
<li>然后通过 the_content() 来输出分隔符&lt;!&#8211;more&#8211;&gt;之前的内容。</li>
</ol>
<h4>如何实现上述原理？下面以一个实例来说明：</h4>
<pre><code>// 获取&lt;!--more--&gt;的位置
$theEndPosition=strrpos($post_content, '&lt;!--more--&gt;');
// 输出指定位置之前的内容
echo substr($post_content,0,$theEndPosition);</code></pre>
<p>总结：只需要简单的调用<a href="http://www.renniaofei.com/tag/php/">PHP</a>的strrpos和substr函数，即可实现指定分隔符之前的内容，也即摘要输出。</p>
]]></content:encoded>
			<wfw:commentRss>http://renniaofei.com/design/wordpress-the-content-yuanli-fenxi/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>提高WordPress安全性必须掌握的5种方法</title>
		<link>http://renniaofei.com/code/top-5-wordpress-security-tips/</link>
		<comments>http://renniaofei.com/code/top-5-wordpress-security-tips/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 11:41:44 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[编码]]></category>
		<category><![CDATA[Datebase]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[WordPress 教程]]></category>

		<guid isPermaLink="false">http://www.renniaofei.com/?p=1180</guid>
		<description><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/code/top-5-wordpress-security-tips/" title="提高Wordpress安全性必须掌握的5种方法"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/http://www.renniaofei.com/wp-content/uploads/2010/05/display-timeago-for-wordpress-if-less-than-24-hours-thumbnail.jpg" alt="提高Wordpress安全性必须掌握的5种方法" /></a>WordPress是一种使用 PHP 语言开发的博客平台，用户可以在支持 PHP 和 MySQL 数据库的服务器上架设自己的博客。全球大约有20%的用户在使用 WordPress，其中包括 yahoo，BBC 等。 随着用户的增加，其安全性也日渐提上日程，这里整理了5条提高 WordPress 安全性的建议供参考。 1. 尽量避免使用admin用户 admin 是安装 WordPress 时产生的管理员用户，拥有所有权限，在安装 WordPress 时，尽量将 admin 对应的密码设置的复杂一些。 2. 将wp-config.php移动到其他目录 如果根目录下没有找到wp-config.php，Wordpress会自动寻找其他目录。 3. 更改Wordpress数据库中的表名前缀 在安装 WordPress 时，默认会将数据库中的表名前缀设置为“wp_”，应尽量修改此前缀。如果 wordpress 已安装完毕，可以利用这个插件 WP Security Scan  来设置。 4. 使用密钥 Secret Keys 访问 http://api.wordpress.org/secret-key/1.1/ ，生成4组密钥，将此4组密钥复制到 wp-config.php。 5.使用 .htaccess 可以限制其他用户访问 wp-admin 目录，我们可以利用下面的代码来指定允许某些特定的IP访问此目录。 AuthUserFile /dev/null AuthGroupFile /dev/null AuthName "Access Control" [...]]]></description>
			<content:encoded><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/code/top-5-wordpress-security-tips/" title="提高Wordpress安全性必须掌握的5种方法"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/http://www.renniaofei.com/wp-content/uploads/2010/05/display-timeago-for-wordpress-if-less-than-24-hours-thumbnail.jpg" alt="提高Wordpress安全性必须掌握的5种方法" /></a><p>WordPress是一种使用 <a href="http://www.renniaofei.com/tag/php/">PHP</a> 语言开发的博客平台，用户可以在支持 <a href="http://www.renniaofei.com/tag/php/">PHP</a> 和 <a href="http://www.renniaofei.com/tag/datebase/">MySQL</a> 数据库的服务器上架设自己的博客。全球大约有20%的用户在使用 <a href="http://www.renniaofei.com/">WordPress</a>，其中包括 yahoo，BBC 等。<span id="more-1180"></span><br />
随着用户的增加，其安全性也日渐提上日程，这里整理了5条提高 WordPress 安全性的建议供参考。</p>
<h4>1. 尽量避免使用admin用户</h4>
<p>admin 是安装 WordPress 时产生的管理员用户，拥有所有权限，在安装 WordPress 时，尽量将 admin 对应的密码设置的复杂一些。</p>
<h4>2. 将wp-config.php移动到其他目录</h4>
<p>如果根目录下没有找到wp-config.php，Wordpress会自动寻找其他目录。</p>
<h4>3. 更改Wordpress数据库中的表名前缀</h4>
<p>在安装 WordPress 时，默认会将数据库中的表名前缀设置为“wp_”，应尽量修改此前缀。如果 wordpress 已安装完毕，可以利用这个插件 <a href="http://wordpress.org/extend/plugins/wp-security-scan/" target="_blank">WP Security Scan</a>  来设置。</p>
<h4>4. 使用密钥 Secret Keys</h4>
<p>访问 <a href="http://api.wordpress.org/secret-key/1.1/ ">http://api.wordpress.org/secret-key/1.1/</a> ，生成4组密钥，将此4组密钥复制到 wp-config.php。</p>
<h4>5.使用 .htaccess</h4>
<p>可以限制其他用户访问 wp-admin 目录，我们可以利用下面的代码来指定允许某些特定的IP访问此目录。</p>
<pre><code>AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName "Access Control"
AuthType Basic
order deny,allow
deny from all
#IP address to Whitelist
allow from xxx.xxx.xxx.xxx</code></pre>
<p>说明：如果需要指定多个IP，可以重复“allow from xxx.xxx.xxx.xxx”（不含引号）即可。</p>
]]></content:encoded>
			<wfw:commentRss>http://renniaofei.com/code/top-5-wordpress-security-tips/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>使用PHP备份MySQL数据库</title>
		<link>http://renniaofei.com/code/using-php-to-backup-mysql-databases/</link>
		<comments>http://renniaofei.com/code/using-php-to-backup-mysql-databases/#comments</comments>
		<pubDate>Tue, 04 May 2010 14:50:36 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[编码]]></category>
		<category><![CDATA[Datebase]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.renniaofei.com/?p=949</guid>
		<description><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/code/using-php-to-backup-mysql-databases/" title="使用PHP备份MySQL数据库"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/http://www.renniaofei.com/wp-content/uploads/2010/05/using-php-to-backup-mysql-databases-thumbnail.jpg" alt="使用PHP备份MySQL数据库" /></a>在网站运营和维护过程中，需要定期对数据进行备份，网站建站方案最经典的搭配组合就是Apache+MySQL+PHP。 使用PHP备份MySQL数据库方法 PHP编程，执行数据库查询备份语句。 使用system() 函数。 使用phpMyAdmin。 一. PHP编程，执行数据库查询备份语句 使用 SELECT INTO OUTFILE  备份数据 &#60;?php include 'config.php'; include 'opendb.php'; $tableName = 'mypet'; $backupFile = 'backup/mypet.sql'; $query = "SELECT * INTO OUTFILE '$backupFile' FROM $tableName"; $result = mysql_query($query); include 'closedb.php'; ?&#62; 使用 LOAD DATA INFILE  来恢复数据 &#60;?php include 'config.php'; include 'opendb.php'; $tableName = 'mypet'; $backupFile = 'mypet.sql'; [...]]]></description>
			<content:encoded><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/code/using-php-to-backup-mysql-databases/" title="使用PHP备份MySQL数据库"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/http://www.renniaofei.com/wp-content/uploads/2010/05/using-php-to-backup-mysql-databases-thumbnail.jpg" alt="使用PHP备份MySQL数据库" /></a><p>在网站运营和维护过程中，需要定期对数据进行备份，网站建站方案最经典的搭配组合就是Apache+MySQL+PHP。<br />
<span id="more-949"></span></p>
<h4>使用PHP备份MySQL数据库方法</h4>
<ol>
<li>PHP编程，执行数据库查询备份语句。</li>
<li>使用system() 函数。</li>
<li>使用phpMyAdmin。</li>
</ol>
<h4>一. PHP编程，执行数据库查询备份语句</h4>
<p>使用 SELECT INTO OUTFILE  备份数据</p>
<pre><code>&lt;?php
include 'config.php';
include 'opendb.php';

$tableName  = 'mypet';
$backupFile = 'backup/mypet.sql';
$query      = "SELECT * INTO OUTFILE '$backupFile' FROM $tableName";
$result = mysql_query($query);

include 'closedb.php';
?&gt;</code></pre>
<p>使用 LOAD DATA INFILE  来恢复数据</p>
<pre><code>&lt;?php
include 'config.php';
include 'opendb.php';
$tableName  = 'mypet';
$backupFile = 'mypet.sql';
$query      = "LOAD DATA INFILE 'backupFile' INTO TABLE $tableName";
$result = mysql_query($query);
include 'closedb.php';
?&gt;</code></pre>
<h4>二. 使用system() 函数</h4>
<p>使用MySQL自带的 system()函数执行外部命令（command）。</p>
<pre><code>&lt;?php
include 'config.php';
include 'opendb.php';
$backupFile = $dbname . date("Y-m-d-H-i-s") . '.gz';
$command = "mysqldump --opt -h $dbhost -u $dbuser -p $dbpass $dbname | gzip &gt; $backupFile";
system($command);
include 'closedb.php';
?&gt;</code></pre>
<h4>三. 使用phpMyAdmin</h4>
<p>要想使用phpMyAdmin备份数据的前提是你必须等安装它才行。<a href="http://www.phpmyadmin.net/">phpMyAdmin 下载地址</a></p>
<p>具体步骤：phpMyAdmin主页 / 导出 / 选择需要导出的数据表 /选项默认即可 / 执行</p>
<p><a href="http://www.php-mysql-tutorial.com/wikis/mysql-tutorials/default.aspx">来源</a></p>
]]></content:encoded>
			<wfw:commentRss>http://renniaofei.com/code/using-php-to-backup-mysql-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>优化SQL语句，提高数据库执行效率的8条建议</title>
		<link>http://renniaofei.com/code/8-useful-tips-to-optimize-and-speed-up-your-website-database/</link>
		<comments>http://renniaofei.com/code/8-useful-tips-to-optimize-and-speed-up-your-website-database/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 17:53:14 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[编码]]></category>
		<category><![CDATA[Datebase]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://www.renniaofei.com/?p=625</guid>
		<description><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/code/8-useful-tips-to-optimize-and-speed-up-your-website-database/" title="优化SQL语句，提高数据库执行效率的8条建议"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/http://www.renniaofei.com/wp-content/uploads/2010/03/8-useful-tips-to-optimize-and-speed-up-your-website-database-thumbnail.jpg" alt="优化SQL语句，提高数据库执行效率的8条建议" /></a>网站（动态）的数据一般情况下都会存储在数据库中（例如MS SQL、My SQL等），当用户访问网站时，会根据一些缺省的或用户提交的参数（比如网址后面可能会带有”index.php?cat=design” ）来查询或更新数据库，虽然数据库的运行速度很快，但在一些不恰当的数据库操作的情况下，会增加数据库运行占用的系统资源，严重时可能会拖垮整个数据库的运行。 下面汇总了10条常见的SQL语句问题点及优化建议 1. 尽量减少 * 的使用，只查询你需要的字段内容。 优化前： SELECT * FROM wp_posts; 优化后： SELECT title, excerpt, author FROM wp_posts; 2. 记得使用 LIMIT ， 限制查询的数量。 优化后： SELECT title, excerpt, author FROM wp_posts LIMIT 10; LIMIT 的使用方法： LIMIT OFFSET,NUMBER ； offset代表偏移量，number代表从offset开始查询的数量。 例如： LIMIT 10 ； 代表偏移量为0，查询条数为10条。 LIMIT 10,12 ; 代表偏移量为10，查询条数为12条。 3. 避免在程序语言的循环语句（例如 PHP 的foreach、while 等）中使用SQL语句 [...]]]></description>
			<content:encoded><![CDATA[<a href="http://cad2d3d.com/wp-content/uploads/http://renniaofei.com/code/8-useful-tips-to-optimize-and-speed-up-your-website-database/" title="优化SQL语句，提高数据库执行效率的8条建议"  class="smallthumb"><img src="http://www.awebgallery.com/wp-content/uploads/http://www.renniaofei.com/wp-content/uploads/2010/03/8-useful-tips-to-optimize-and-speed-up-your-website-database-thumbnail.jpg" alt="优化SQL语句，提高数据库执行效率的8条建议" /></a><p>网站（动态）的数据一般情况下都会存储在数据库中（例如MS SQL、My SQL等），当用户访问网站时，会根据一些缺省的或用户提交的参数（比如网址后面可能会带有”index.php?cat=design” ）来查询或更新数据库，虽然数据库的运行速度很快，但在一些不恰当的数据库操作的情况下，会增加数据库运行占用的系统资源，严重时可能会拖垮整个数据库的运行。<br />
<span id="more-625"></span><br />
下面汇总了10条常见的SQL语句问题点及优化建议</p>
<h4>1.  尽量减少 * 的使用，只查询你需要的字段内容。</h4>
<p>优化前：</p>
<pre><code>SELECT * FROM wp_posts;</code></pre>
<p>优化后：</p>
<pre><code>SELECT title, excerpt, author FROM wp_posts;</code></pre>
<h4>2. 记得使用 LIMIT ， 限制查询的数量。</h4>
<p>优化后：</p>
<pre><code>SELECT title, excerpt, author FROM wp_posts LIMIT 10;</code></pre>
<p>LIMIT 的使用方法：<br />
LIMIT OFFSET,NUMBER ； offset代表偏移量，number代表从offset开始查询的数量。<br />
例如：<br />
LIMIT 10 ； 代表偏移量为0，查询条数为10条。<br />
LIMIT 10,12 ; 代表偏移量为10，查询条数为12条。</p>
<h4>3. 避免在程序语言的循环语句（例如 PHP 的foreach、while 等）中使用SQL语句</h4>
<p>优化前:</p>
<pre><code>foreach ($display_order as $id =&gt; $ordinal) {
$sql = "UPDATE categories SET display_order = $ordinal WHERE id = $id";}</code></pre>
<p>优化后：</p>
<pre><code>UPDATE categories
SET display_order =   CASE id
WHEN 1 THEN 3
WHEN 2 THEN 4
WHEN 3 THEN 5
END
WHERE id IN (1,2,3)</code></pre>
<p>具体请参考：<a href="http://www.renniaofei.com/code/update-multiple-rows-with-different-values-and-a-single-sql-query/">如何在数据库中一次更新多行多字段</a></p>
<h4>4. 使用join代替子查询（subqueries）语句</h4>
<p>优化前：</p>
<pre><code>SELECT a.id,
(SELECT MAX(created)
FROM posts
WHERE author_id = a.id)
AS latest_post FROM authors a</code></pre>
<p>优化后：</p>
<pre><code>SELECT a.id, MAX(p.created) AS latest_post
FROM authors a
INNER JOIN posts p
ON (a.id = p.author_id)
GROUP BY a.id </code></pre>
<h4>5. 尽量减少通配符的使用，特别是前缀通配符（通配符放在前面）</h4>
<pre><code>#Full wildcard
SELECT * FROM TABLE WHERE COLUMN LIKE '%hello%';
#Postfix wildcard
SELECT * FROM TABLE WHERE COLUMN LIKE  'hello%';
#Prefix wildcard
SELECT * FROM TABLE WHERE COLUMN LIKE  '%hello';</code></pre>
<h4>6. 使用union代替or查询语句</h4>
<p>优化前：</p>
<pre><code>SELECT * FROM a, b WHERE a.p = b.q or a.x = b.y;</code></pre>
<p>优化后</p>
<pre><code>SELECT * FROM a, b WHERE a.p = b.q
UNION
SELECT * FROM a, b WHERE a.x = b.y</code></pre>
<h4>7. 记得使用索引（index）</h4>
<pre><code>CREATE INDEX idxModel ON Product (Model);</code></pre>
<h4>8. 用&gt;=替代&gt;</h4>
<p>优化前：</p>
<pre><code>SELECT * FROM EMP WHERE DEPTNO &gt;3</code></pre>
<p>优化后：</p>
<pre><code>SELECT * FROM EMP WHERE DEPTNO &gt;=4</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://renniaofei.com/code/8-useful-tips-to-optimize-and-speed-up-your-website-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: renniaofei.com @ 2012-02-06 22:21:30 -->
