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
Use mkdir().
If you need to make multiple folders, such as by passing a/b/c, set the third argument to TRUE.
a/b/c
TRUE
You can test if it is already there, and add if not like so....
$path = 'abc'; if ( ! is_dir($path)) { mkdir($path); }