$id = $names_new[$j][0];
$old = $names_new[$j][1];
$new = $names_old[$i][1];
$tofile = $id . ';' . $old . ';' . $new . "\n";
$bom = "\xEF\xBB\xBF";
@file_put_contents($fileall, $bom . $tofile . file_get_contents($fileall));
$tofile = $id . ';' . $old . ';' . $new . "\n";