I want to upload files with PHP and i use move_uplload_files to copy them to the destination folder I want, everything works fine with this :
if (move_upload
Create the directory first using mkdir()
mkdir()
$rand = chr(rand(97, 122)). chr(rand(97, 122)). chr(rand(97, 122)); mkdir('./uploades/'.$rand); if (move_uploaded_file($_FILES['uploadfile']['tmp_name'], './uploades/'.$rand)) die("success"); else die("error");