I need to create a directory using php with write permission…currently am using the following code
$folder_name = $this->input->post('foldername', true);
$path = '/home/temp/workspace/My_folder/documents/'.$folder_name;
mkdir($path,'0222');
But this is not working…
Does your application (Apache probably) have the right to write in that directory? Does the directory exist?
try this maybe: