I'm gaving some difficulty getting my head around "Permissions".
In my public_html folder, I have two directories, one called 'standard' and the other called 'configs'.
In configs, there's a script called 'makeone.php' that creates a directory in public_html, and then copies the contents of 'standard' into the new directory. It then creates a file in configs.
Or at least that's what it's supposed to do.
If I set permissions to 0770 in public_html, and 0777 in configs, then I can create the required directory and write the file into configs.
If, when I create the folder in public_html, I set it to 0777, then I can copy from standard to the new folder.
If I set the permission of the new folder back to 0755 on completion, then my ftp software (filezilla) can't delete the new folders, or change permissions.
This raises a number of questions, not least is one of security.
I think it comes down to ownership, in that the "owner" of the php installation is different to the owner of the domain space (shared server).
If that's correct, how do I get the right owner id's, and how do I transfer ownership from one to the other?