Use of chmod

Use of chmod

am 17.10.2007 15:36:46 von Sonnich Jensen

Hi all

I have problem with:

$ff=dirname(__FILE__);
chmod("$ff/uus", 777);
chmod("uus", 777);

which can I not change the directories?

I work on a site on a place, where I cannot upload files to the main
dir, therefore I create subdirectories for that... and set them using
this.
At least, that is what they say I should do. Still the code above
complains about missing rights to do so.

Am I doing something wrong here?

WBR
Sonnich

Re: Use of chmod

am 17.10.2007 16:01:42 von luiheidsgoeroe

On Wed, 17 Oct 2007 15:36:46 +0200, Sonnich Jensen =

wrote:

> Hi all
>
> I have problem with:
>
> $ff=3Ddirname(__FILE__);
> chmod("$ff/uus", 777);
> chmod("uus", 777);

0777 !=3D 777

So use an octal. (777 in octals would 1411, hardly wat you want)

chmode('/path/sub',0777);

> which can I not change the directories?

See above, and make sure you have the right to change them in the first =
=

place.
-- =

Rik Wasmus