Re: [PHP] Mystery about chmod and permissions

2005-10-09 Thread Al
"Directory permissions for $dirname: ". substr(sprintf('%o', fileperms($dirname)), -3). " //reports 0755; Give that a try - Jeff -Original Message- From: Al [mailto:[EMAIL PROTECTED] Sent: Sunday, October 09, 2005 3:50 PM To: php-general@lists.php.net Subject:

RE: [PHP] Mystery about chmod and permissions

2005-10-09 Thread Jeffrey Santos
sions for $dirname: ". substr(sprintf('%o', fileperms($dirname)), -3). " //reports 0755; Give that a try - Jeff -Original Message- From: Al [mailto:[EMAIL PROTECTED] Sent: Sunday, October 09, 2005 3:50 PM To: php-general@lists.php.net Subject: [PHP] Mystery about ch

[PHP] Mystery about chmod and permissions

2005-10-09 Thread Al
I've got a script that checks a directory's permissions for 757 and if they are not correct, chmods them with a cgi script. That part works just fine. Can alternately switch the permissions from 755 to 757 and back. I can use a ftp utility to check the permissions and they are correct. The m