Oto mój kod, niestety po wywołaniu funkcji nie działa .
<?php // $file – warto¶ć "true" pozowoli na wy¶wietlanie rozszerzenia plików function sanitize($string = '', $file = false) { $pl = array('±', 'ć', 'ę', 'ł', 'ń', 'ó', '¶', 'Ľ', 'ż', 'ˇ', 'Ć', 'Ę', 'Ł', 'Ń', 'Ó', '¦', '¬', 'Ż'); $lat = array('a', 'c', 'e', 'l', 'n', 'o', 's', 'z', 'z', 'A', 'C', 'E', 'L', 'N', 'O', 'S', 'Z', 'Z'); return $string; } $tempFile = $_FILES['Filedata']['tmp_name']; $targetPath = $_SERVER['DOCUMENT_ROOT'] . $_GET['folder'] . '/'; $pathFile = $_FILES['Filedata']['name']; $pathFile = santize($pathFile); // Uncomment the following line if you want to make the directory if it doesn't exist } ?>
Ma kto¶ jaki¶ pomysł co tu nie tak ?
Pozdrawiam