目前我有以下内容:
$config['upload_path'] = 'this/path/location/';
我想做的是创建以下控制器,但我不知道如何攻击它!!
$data['folderName'] = $this->model->functionName()->tableName;
$config['upload_path'] = 'this/'.$folderName.'/';
我将如何$folderName?
在服务器上创建字典?
杰米:
我可以执行以下操作吗?
if(!file_exists($folderName))
{
$folder = mkdir('/location/'$folderName);
return $folder;
}
else
{
$config['upload_path'] = $folder;
}