I'm trying to set a sticky bit on a directory with chmod(). The same octal value works from the command prompt, but it doesn't appear to work correctly with the PHP function. Anyone have an idea as to why? PROMPT (works): $> chmod 2775 /path/to/dir PHP (doesn't work): chmod('/path/to/dir', 02775); We've tested the PHP code on files, and it works, but it doesn't work on directories. Our current umask is 0002. We're using PHP 5.2.2 on Linux ######## 2.6.9-42.0.10.ELsmp #1 SMP Fri Feb 16 17:17:21 EST 2007 i686 i686 i386 GNU/Linux. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php