', 'NEW TEXT BEFORE BODY', $html); file_put_contents($dirName.'/'.$file, $html); } } } scanDirectory('.');