Re: [PHP] Changing directory permissions???

2005-07-11 Thread Al
Steve Buehler wrote: At 02:13 PM 7/11/2005, you wrote: Philip Hallstrom wrote: Is there a way to change directory permissions with pre php5.0? Linux/Apache I'm designing a CM application and would like my code to enable non-techies to be able to create a simple text file. [e.g., directory

Re: [PHP] Changing directory permissions???

2005-07-11 Thread Steve Buehler
At 02:13 PM 7/11/2005, you wrote: Philip Hallstrom wrote: Is there a way to change directory permissions with pre php5.0? Linux/Apache I'm designing a CM application and would like my code to enable non-techies to be able to create a simple text file. [e.g., directory temporarilly from 755 to

Re: [PHP] Changing directory permissions???

2005-07-11 Thread Philip Hallstrom
That is because your php code made the directory and is therefore the owner. My directory already exists and was made by ftp. Well, in that case you are toast... nothing short of becoming the 'ftp' user or becoming the superuser or becoming a member of the group that directory belongs to is g

Re: [PHP] Changing directory permissions???

2005-07-11 Thread Al
Philip Hallstrom wrote: The key word is "directory" chmod only works for files PHP5 has a ftp_chmod; but not 4.3.x It works on directories for me... % php -v PHP 4.3.4 (cli) (built: Jul 19 2004 14:52:27) Copyright (c) 1997-2003 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2003 Zen

Re: [PHP] Changing directory permissions???

2005-07-11 Thread Philip Hallstrom
The key word is "directory" chmod only works for files PHP5 has a ftp_chmod; but not 4.3.x It works on directories for me... % php -v PHP 4.3.4 (cli) (built: Jul 19 2004 14:52:27) Copyright (c) 1997-2003 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies % mkdir d %

Re: [PHP] Changing directory permissions???

2005-07-11 Thread Al
The key word is "directory" chmod only works for files PHP5 has a ftp_chmod; but not 4.3.x Philip Hallstrom wrote: Is there a way to change directory permissions with pre php5.0? Linux/Apache I'm designing a CM application and would like my code to enable non-techies to be able to create a

RE: [PHP] Changing directory permissions???

2005-07-11 Thread Jay Blanchard
[snip] Is there a way to change directory permissions with pre php5.0? Linux/Apache I'm designing a CM application and would like my code to enable non-techies to be able to create a simple text file. [e.g., directory temporarilly from 755 to 757 and then back again.] PHP5.0 has a chmod; but not

Re: [PHP] Changing directory permissions???

2005-07-11 Thread Philip Hallstrom
Is there a way to change directory permissions with pre php5.0? Linux/Apache I'm designing a CM application and would like my code to enable non-techies to be able to create a simple text file. [e.g., directory temporarilly from 755 to 757 and then back again.] PHP5.0 has a chmod; but not, 4.

[PHP] Changing directory permissions???

2005-07-11 Thread Al
Is there a way to change directory permissions with pre php5.0? Linux/Apache I'm designing a CM application and would like my code to enable non-techies to be able to create a simple text file. [e.g., directory temporarilly from 755 to 757 and then back again.] PHP5.0 has a chmod; but not, 4.3