Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-07 Thread Richard Lynch
On Thu, August 2, 2007 10:48 am, Ben Ramsey wrote: > On 8/2/07 11:45 AM, Tijnema wrote: >> On 8/2/07, Ben Ramsey <[EMAIL PROTECTED]> wrote: >>> So, what are we doing wrong with chmod() that is causing us to get >>> the >>> wrong results? Keep in mind that we are running the PHP script as >>> the

RE: [PHP] Setting group sticky bit on directory with chmod()

2007-08-03 Thread Ford, Mike
On 02 August 2007 17:45, Daniel Brown wrote: > Well, you're pleasant today, Mike. H'mmm. I guess that was a little crabby. Sorry. All I can say is that it was practically the last thing I did before going home at the end of a particularly frustrating day Cheers! Mike

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Daniel Brown
Well, you're pleasant today, Mike. On 8/2/07, Ford, Mike <[EMAIL PROTECTED]> wrote: > On 02 August 2007 15:58, Daniel Brown wrote: > > > On 8/2/07, Ben Ramsey <[EMAIL PROTECTED]> wrote: > > > I'm trying to set a sticky bit on a directory with chmod(). The same > > > octal value works from the

RE: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ford, Mike
On 02 August 2007 15:58, Daniel Brown wrote: > On 8/2/07, Ben Ramsey <[EMAIL PROTECTED]> wrote: > > 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

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ben Ramsey
On 8/2/07 11:45 AM, Tijnema wrote: > On 8/2/07, Ben Ramsey <[EMAIL PROTECTED]> wrote: >> So, what are we doing wrong with chmod() that is causing us to get the >> wrong results? Keep in mind that we are running the PHP script as the >> same user who owns the directory. > > Who is the owner of the

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Tijnema
On 8/2/07, Ben Ramsey <[EMAIL PROTECTED]> wrote: > On 8/2/07 10:57 AM, Daniel Brown wrote: > > On 8/2/07, Ben Ramsey <[EMAIL PROTECTED]> wrote: > >> 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 > >> directo

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ben Ramsey
On 8/2/07 10:57 AM, Daniel Brown wrote: > On 8/2/07, Ben Ramsey <[EMAIL PROTECTED]> wrote: >> 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. > > Drop the preceding 0 from the chmod() function p

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ben Ramsey
On 8/2/07 10:57 AM, Daniel Brown wrote: > On 8/2/07, Ben Ramsey <[EMAIL PROTECTED]> wrote: >> 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. > > Drop the preceding 0 from the chmod() function p

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ben Ramsey
On 8/2/07 10:57 AM, Daniel Brown wrote: > On 8/2/07, Ben Ramsey <[EMAIL PROTECTED]> wrote: >> 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. > > Drop the preceding 0 from the chmod() function p

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Daniel Brown
On 8/2/07, Ben Ramsey <[EMAIL PROTECTED]> wrote: > 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 /p