Кусок файла 'd.txt'
Mebel
Shkafy-kupe_STERH
Kuhni
Bytovaya_tehnika
Пишет
п»їMebel
Warning: mkdir() [function.mkdir]: Invalid argument in Y:\home\localhost\www\first\hlam\domus\domus_create_folder.php on line 16
Shkafy-kupe_STERH
Warning: mkdir() [function.mkdir]: Invalid argument in Y:\home\localhost\www\first\hlam\domus\domus_create_folder.php on line 16
Kuhni
Warning: mkdir() [function.mkdir]: Invalid argument in Y:\home\localhost\www\first\hlam\domus\domus_create_folder.php on line 16
Bytovaya_tehnika
Не знаю что я делаю нет так
'd.txt в ANSI пробовал и в UTF
<?php
setlocale(LC_ALL, 'ru_RU');
printf(setlocale(LC_ALL, ""));
$flie=file('d.txt');
foreach ($flie as $item) {
echo $item."<br />";
mkdir ( './'.$item);
}
?>
пишет
Russian_Russia.1251Mebel
Warning: mkdir() [function.mkdir]: Invalid argument in Y:\home\localhost\www\first\hlam\domus\domus_create_folder.php on line 17
Shkafy-kupe_STERH
Warning: mkdir() [function.mkdir]: Invalid argument in Y:\home\localhost\www\first\hlam\domus\domus_create_folder.php on line 17
Kuhni
Warning: mkdir() [function.mkdir]: Invalid argument in Y:\home\localhost\www\first\hlam\domus\domus_create_folder.php on line 17
Bytovaya_tehnika
Warning: mkdir() [function.mkdir]: Invalid argument in Y:\home\localhost\www\first\hlam\domus\domus_create_folder.php on line 17
Lyustry_i_svetilniki
Если пишу так mkdir ( './Medel');
то папка Mebel создается