<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[PHP中readfile()的理解]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Mon, 15 Mar 2010 09:38:36 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;今天发现了一个php函数readfile()执行速度要比include和require要快。<br/>&nbsp;&nbsp;<br/>Function &nbsp;&nbsp;Time (s) &nbsp;&nbsp;Memory (b)<br/><br/>&nbsp;&nbsp;32Kb File &nbsp;&nbsp;1Mb File &nbsp;&nbsp;32Kb File &nbsp;&nbsp;1Mb File<br/>file_get_contents &nbsp;&nbsp;0.00152 &nbsp;&nbsp;0.00564 &nbsp;&nbsp;52480 &nbsp;&nbsp;1067856<br/>fpassthru &nbsp;&nbsp;0.00117 &nbsp;&nbsp;0.00184 &nbsp;&nbsp;20016 &nbsp;&nbsp;20032<br/>fgets &nbsp;&nbsp;0.00195 &nbsp;&nbsp;0.07190 &nbsp;&nbsp;30760 &nbsp;&nbsp;30768<br/>file &nbsp;&nbsp;0.00157 &nbsp;&nbsp;0.06464 &nbsp;&nbsp;87344 &nbsp;&nbsp;2185624<br/>require_once &nbsp;&nbsp;0.00225 &nbsp;&nbsp;0.08065 &nbsp;&nbsp;67992 &nbsp;&nbsp;2067696<br/>include &nbsp;&nbsp;0.00222 &nbsp;&nbsp;0.08202 &nbsp;&nbsp;67928 &nbsp;&nbsp;2067624<br/>readfile &nbsp;&nbsp;0.00117 &nbsp;&nbsp;0.00191 &nbsp;&nbsp;19192 &nbsp;&nbsp;19208<br/>&nbsp;&nbsp;具体用法如下：<br/>&nbsp;&nbsp;假设你有一个文本文件wade.txt,内容如下：<br/>&nbsp;&nbsp;hello wade,you are so cool!!!<br/>&nbsp;&nbsp;下面是具体的php代码：<br/>&nbsp;&nbsp;readfile.php<br/>&nbsp;&nbsp;&lt;?php<br/>&nbsp;&nbsp;&nbsp;&nbsp; readfile(&quot;wade.txt&quot;);<br/>&nbsp;&nbsp;?&gt;<br/>&nbsp;&nbsp;如果你感到速度不错的话，可以用它来代替include和require了。<br/><br/>来源：http://blog.sina.com.cn/s/blog_4d8a2c970100evd2.html
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] PHP中readfile()的理解]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>