Forum Moderators: coopster
I made a PHP script that creates a new folder (say "Folder 1") and then copies a file from the parent folder (call the file "index.php") into the new folder; so we get Folder 1/index.php
Now, how can I set the ownership of this file and folder, automatically via the PHP script, to me (the server user), not httpd?
(*) When safe mode is enabled, you can only execute
executables within the safe_mode_exec_dir.
(**) Warning: If you are going to allow data coming from user input to be passed to this function, then you should be using escapeshellarg() or escapeshellcmd() to make sure that users cannot trick the system into executing arbitrary commands.
Regards,
R.