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

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
vaccuchuoi
Forum Newbie
Posts: 2
Joined: Tue Jun 23, 2009 10:42 pm

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

Post 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)
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

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

Post 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
Post Reply