php が HTML を処理するとき、文字列の切り捨て
stream=fopen("xxx.html");<br />var str = '';<br />while(!feof(stream)<br />{<br /> size+=1024;<br /> str.=fread(stream,size);<br />}<br />....<br />
$stream=fopen("test.html","r");<br />$str = '';<br />$size=1024;<br />while(!feof($stream)){<br /> $tmp=fread($stream,$size);<br /> file_put_contents('d:/log.log',$tmp.PHP_EOL,FILE_APPEND);<br /> $str.=$tmp;<br /> $tmp='';<br />}<br />fclose($stream);<br />echo $str;