Use $perms &= 0511 instead of $perms &= 511. Permission masks are in octal notation, and the preceding 0 will make PHP interpret the number as octal.
Sjoerd
2010-06-15 14:14:30
Use $perms &= 0511 instead of $perms &= 511. Permission masks are in octal notation, and the preceding 0 will make PHP interpret the number as octal.