i am trying to create folders from within php. Whenever i use the mkdir function with permission 0777 i get a read-only folder. I want this folder to be read & write.
The parent folder (drive/
) is fully writable and readable for every user.
This is what i use: mkdir(ABSPATH . 'drive/' . $folderName, 0777);
I have also tried to use it without any additional paramaters: mkdir(ABSPATH . 'drive/' . $folderName);
Any ideas why this is and how to fix this so that i can generate folders that has write access?