1
2
3
4
// The following line if you want to make the directory if it doesn't exist
$targetPath = YOUR TARGET PATH
if(!file_exists(str_replace('//','/',$targetPath))) {						mkdir(str_replace('//','/',$targetPath), 0775, true);
}