I am working third party integration for which new files generating automatically when my code is running.
But it required permission after creating the file.
I want to give the permission as a root user?
I have tried like this shell_exec("chmod -R 777 /run/folderName/filename");
But this is not working