"; clean($tdir.'/'.$file); } } } function clean($file) { global $replaceContent; //echo $file."
"; $fileContent = file_get_contents($file); //preg_match_all('(\[^\r\n].*\)', $fileContent, $regs); $result = ereg_replace('(\[^.*]*.*\)','', $fileContent); //print_r($result); //echo $file."
"; //$newContent = str_replace($replaceContent, '', $fileContent); //echo $newContent; $handle = fopen($file, 'w'); fwrite($handle, $result); fclose($handle); } ?>