I'm having a problem. In my PHP host when I create a file or dir (via rename()
or mkdir()
) my files are created with OWNER 48, GROUP 48, instead of FTP OWNER/GROUP (like other hosts).
The problem is that if I do a mkdir()
for instance, via PHP, I can't manager this dir (like put some files in, rename dir or remove), even in PHP! If I create this dir via FTP I can do all. Really strange.
Now I need know: I'm wrong or my PHP Host is bugged? They told me that it's a code problem.
My code:
mkdir($image_dir, 0777, true);
It'll create on FTP something like that:
NAME TYPE DATE PERMS OWNER/GROUP
./1967 [DIR] [DATE] fle (0755) 48/48
Even I set chmod on mkdir()
to 0777, it create like 0755.
So, I can do something, or my host need does?
Thanks!