Hello Everybody,
I'm newbie to PHP and I am having a problem on Linux redhat 7.3. Safe Mode on and phpsuexec disabled.
I want to create a folder and copy a file from some other folder
in it. But the problem is as soon as I create a folder from PHP
file using mkdir() and copy a file in it, it assigns it nobody as
user and nobody as a group. I want that the user and group of both the newly created directory and file should be the same as the script from which it's created.
I have also tried chown and shell_exec both the commands in PHP but both haven't worked.
Please help me how can I set the user and group of newly created folder & copied file.