首页大概3KB,是在本地测试的
<BR>file_get_contents('shadow.xml'); <BR>
耗时 0.0003 秒
<BR>$indexFil<p style="color:transparent">。本文来源gao!%daima.com搞$代*!码网1</p><cite>搞代gaodaima码</cite>e = fopen('shadow.xml', 'r');while ( !feof($indexFile)) fgetc( $indexFile); <BR>
耗时 0.026 秒
<BR>$indexFile = fopen('shadow.xml', 'r');fread($indexFile, 10000); <BR>
耗时 0.0003秒
相差将近 100 倍!! 还真是出乎意料
我估摸着时间怕都牺牲在while循环上还是怎的