PROBLEM
I'm trying to upload files to my own server via PHP. If folder doesn't exist, first I attempt to create the folders;
mkdir($folder, 0700);
My script is creating the folders but apache is the owner of the folder (and file) so I can't access the file which I uploaded.
I have safe_mode off in my server. I still couldn't find a way around for this one.
I would be glad if anyone could help me out with this one.
NOTE: I tried 0755, 0777 doesn't change anything. Apache is owner of the folder created.