Forum Moderators: coopster

Message Too Old, No Replies

Wierd php UMASK problem?

umask keeps changing!

         

BenSeb

6:55 pm on May 3, 2005 (gmt 0)

10+ Year Member



I have php 4.3.11 running on FreeBSD 5.3 and Apache 2.0.52

Recently I have had lots of problems with file permissions when creating new files. Everything was working fine before I upgraded to 4.3.10

I think I have tracked this down to the umask value. I dont set this anywhere on my scripts. However, if I

echo umask();

on a test page, sometimes it shows '18' and sometimes it shows '63'

I can refresh the page and it flips between 18 and 63. There is only one other site on the server so im pretty sure nothing else is changing the config

This is causing all sorts of problems - any ideas?

BenSeb

1:03 pm on May 4, 2005 (gmt 0)

10+ Year Member



hmmm... has this stumpted everyone? ;)

ergophobe

4:40 pm on May 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



How are you setting the umask number? With a hard-coded number, with a variable? Specified as octal or as decimal?