$file = fopen("RU/6_RU.html","w+");
fputs ($file, str_replace($search, $replace,$NTV));
fclose ($file);
Вылетает ошибка
Warning: fopen(RU/6_RU.html) [function.fopen]: failed to open stream: Permission denied in
Warning: fputs(): supplied argument is not a valid stream resource in
Warning: fclose(): supplied argument is not a valid stream resource in