Search found 2 matches

by hueman
Sun Jun 06, 2010 4:26 am
Forum: PHP - Code
Topic: faild to create path with chmod 777
Replies: 3
Views: 196

Re: faild to create path with chmod 777

PHP probably does not run in the same group as the process that created the directories (most likely, it is running as 'Unknown' or 'nobody'). You should set PHP to run under the user/group that owns the directories (most likely, apache) in order to apply chmod. thank you for responding me how can ...
by hueman
Sat Jun 05, 2010 5:08 pm
Forum: PHP - Code
Topic: faild to create path with chmod 777
Replies: 3
Views: 196

faild to create path with chmod 777

i need to create nested directories with chmod 777, i tried following code but every directory created with chmod 755 in CentOS, in windows this code create directories with chmod 777, whats the problem? $dir = "a"; $folders = array('b','c','d'); foreach($folders as $f) { $dir = $dir."...