My issue is getting an error as following while try to create a folder using php script in
mkdir(): permission denied
Am am using ubuntu system and lampp installed. In my application I need to create a folder in
/opt/lampp/htdoc/ for temporary storage of files.
I can able to create files and folders dynamically by php script.
I have checked my folder owner and group and changed it to www-data:www-data as same as in inner folder, but still same error.
Here is my code for creating folder:
$old = umask(0); mkdir($UploadDirectory, 0777,true); umask($old);
$UploadDirectory path is also the correct
I have tried all the available answers in StackOverflow, that's why I am creating new question. Please help.