php读取txt文档,并批量替换全文
[CODE=html] $mstr=$netim;
$file_name="netim_$mstr.txt";
$fp=fopen($file_name,'r');
while(!feof($fp))
{
$netim=fgets($fp,4096);
$netimcn=str_replace("\r\n","",$netim);
list($puu, $puucn) = split ('[,]', $netimcn);
$title=str_replace("$puu","$puucn",$title);
$neirong=str_replace("$puu","$puucn",$neirong);
}
fclose($fp);
?>[/CODE]