Vinsik
12.01.2009, 11:03
Я написал вот такой код
$uniq = strtolower(str_replace('а','a',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('б','b',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('в','v',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('г','g',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('д','d',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('е','e',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ё','oh',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ж','zh',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('з','z',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('и','i',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('й','j',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('к','k',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('л','l',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('м','m',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('н','n',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('о','o',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('п','p',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('р','r',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('с','s',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('т','t',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('у','u',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ф','f',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('х','x',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ц','c',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ч','ch',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ш','sh',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('щ','w',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ъ','qh',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ы','y',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ь','q',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('э','eh',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ю','ju',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('я','ja',($_FILES['attached']['name'])));
Обьясните мне почему он не работает? :(
$uniq = strtolower(str_replace('а','a',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('б','b',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('в','v',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('г','g',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('д','d',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('е','e',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ё','oh',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ж','zh',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('з','z',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('и','i',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('й','j',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('к','k',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('л','l',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('м','m',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('н','n',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('о','o',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('п','p',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('р','r',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('с','s',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('т','t',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('у','u',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ф','f',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('х','x',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ц','c',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ч','ch',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ш','sh',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('щ','w',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ъ','qh',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ы','y',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ь','q',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('э','eh',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('ю','ju',($_FILES['attached']['name'])));
$uniq = strtolower(str_replace('я','ja',($_FILES['attached']['name'])));
Обьясните мне почему он не работает? :(