Re: Newbie Help - mkdir problem
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Newbie Help - mkdir problem

From: Colin McKinnon <colin.thisisnotmysurname@ntlworld.deletemeunlessURaBot.com>
Date: Tue Jan 31 2006 - 20:58:49 CET

Chris wrote:

> I'm trying to use mkdir() to make a directory with a mode of 0777 but it
> always gets created with 0755. How do I change it to 0777.
>

set umask=0000 before starting your webserver. Although you can set the
umask from PHP recommended practice is to use chmod after creating files /
dirs (RTFM for explanation)

C.
Received on Tue Feb 7 21:08:24 2006