I'm using mkdir to create a directory
mkdir ("dir_name", "0751")
when I check the permission of the created file, I see the newly created directory as:
351 ('d-wxr-xr-x')
on the Unix command line, umask shows "22"
when I echo umask from PHP, it say "18" ??
the php scripts is creating the directory with owner "www" and group "admin" , my userid group is "staff"
when I change mkdir to:
mkdir ("dir_name", "0632")
I end up with 150 ("d--xr-x---")
no matter how I do the math, I can figure out how these permissions are being assigned.
Any help is appreciated.