Hi
When I create a new directory manually, it has the owner of my username, but when I get PHP to create a new directory using mkdir() and setting permissions to 777, it has the owner of "apache".
This is causing a problem as when I try to copy files, or move files into a folder that has "apache" as the owner, it won't do it. It works fine when the owner is my username.
I've been having a go with chown() but with no luck. But I'm not sure if that works on directories, as well as files. I can't seem to find much information about changing owner status on directories, so if anyone can shed and light on this or help I would be very grateful!
I really need to be able to create a new folder in PHP but have the owner as my username, but not apache, which appears to be the default!
Cheers.