为什么我的<代码>mkdir不是在<代码>内工作,如果(is_dir)功能,而是在上面只用一条线工作?
mkdir($location.$folderName, 0777);
if(!is_dir($folderName))
{
mkdir($location.$folderName, 0777);
}else{
//Set File Settings
$config[ upload_path ] = $location.$folderName;
$config[ allowed_types ] = jpg|png|pdf ;
$config[ file_name ] = $folderName. _ .$concept;
$config[ remove_spaces ] = TRUE;
$config[ overwrite ] = TRUE;
$config[ max_size ] = 1024 ;
$config[ max_width ] = 1024 ;
$config[ max_height ] = 768 ;
$this->load->library( upload , $config);
print_r($config);
if(!$this->upload->do_upload($conceptOne)) { #= try upload
$data[ uploadError ] = array( uploadError => $this->upload->display_errors()); #Error
$this->load->view( layout , $data);
} // Do upload
else{
$data = array( upload_data => $this->upload->data($conceptOne));
}// end else
}// end if folder