Page 1 of 1

how to creat folder chmod 0777 ??? (php)

Posted: Wed Jun 24, 2009 10:43 pm
by vaccuchuoi
i used

Code: Select all

mkdir("".INCLUDE_PATH."$thumuc/$title", 0777);
to creat folder with chmod 777 but it created a folder chmod 755.

i read some article it said There are 2 ways to resolve
one is:
-unset value of unmask and then creat folder width chmod 777,get again value unmask
this way i can't understan what is unmask.

this way i do but not succesfull.

creat a folfer and then chmod 0777 << this way i creat a folder chmod 777 but can't creat another folder in this.

please tell me the way to creat folder with chmod 0777 (really)

sorry i mistake !(this not for this topic)

Re: how to creat folder chmod 0777 ??? (php)

Posted: Fri Jun 26, 2009 7:55 pm
by icesolid

Code: Select all

mkdir("".INCLUDE_PATH."$thumuc/$title", 0777);
chmod("".INCLUDE_PATH."$thumuc/$title", 0777);
http://us3.php.net/manual/en/function.chmod.php