PHP folder permissions problem
问题 I am trying to create a folder and then another folder within it using PHP. If this is the directory structure I have /home/site (owner : user1) Now, I create the folder using mkdir("/home/site/newdir",0777); (user : apache) The directory /home/site/newdir is created but the user of that directory is " apache " Now, doing mkdir("/home/site/newdir/anotherdir",0777); doesnt create another directory inside newdir. Please help. I think its a owner issue. I cannot change the owner using chmod()