Re: [PHP] umask() and chmod()

2004-04-15 Thread David T-G
Mike -- ...and then Ford, Mike [LSS] said... % % On 15 April 2004 17:26, David T-G wrote: % % > ...and then Ford, Mike [LSS] said... % > % % > % I'm not sure, however, that this is a totally foolproof way % > of doing it, as % > % it would fail with any permission set

Re: [PHP] umask() and chmod()

2004-04-15 Thread David T-G
Mike, et al -- Responding to your second one first... ...and then Ford, Mike [LSS] said... % % On 15 April 2004 16:26, David T-G wrote: % % > When I move_uploaded_file() a file into place, I want to give it the ... % > but chmod() needs a permissions setting rather than a umask. %

RE: [PHP] umask() and chmod()

2004-04-15 Thread Ford, Mike [LSS]
On 15 April 2004 16:26, David T-G wrote: > Hi, all -- > > When I move_uploaded_file() a file into place, I want to give it the > correct permissions; by default they are 600 (rw-/---/--). I already > have the umask set correctly for any given situation in > anticipation of > creating directories

RE: [PHP] umask() and chmod()

2004-04-15 Thread Ford, Mike [LSS]
On 15 April 2004 17:26, David T-G wrote: > Mike, et al -- > > ...and then Ford, Mike [LSS] said... > % > % On 15 April 2004 16:26, David T-G wrote: > % > % > but chmod() needs a permissions setting rather than a umask. % > > % > The challenge is in representing this as octal. With

Re: [PHP] umask() and chmod()

2004-04-15 Thread David T-G
Mike, et al -- ...and then Ford, Mike [LSS] said... % % On 15 April 2004 16:26, David T-G wrote: % % > but chmod() needs a permissions setting rather than a umask. % > % > The challenge is in representing this as octal. With some ... % > to feed to chmod() -- and apparently I can

RE: [PHP] umask() and chmod()

2004-04-15 Thread Ford, Mike [LSS]
On 15 April 2004 16:26, David T-G wrote: > Hi, all -- > > When I move_uploaded_file() a file into place, I want to give it the > correct permissions; by default they are 600 (rw-/---/--). I already > have the umask set correctly for any given situation in > anticipation of > creating directories

[PHP] umask() and chmod()

2004-04-15 Thread David T-G
Hi, all -- When I move_uploaded_file() a file into place, I want to give it the correct permissions; by default they are 600 (rw-/---/--). I already have the umask set correctly for any given situation in anticipation of creating directories, and that works for creating files from scratch, but ch