Connecting Tech Pros Worldwide Help | Site Map

Use of chmod

Sonnich Jensen
Guest
 
Posts: n/a
#1: Oct 17 '07
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

Rik Wasmus
Guest
 
Posts: n/a
#2: Oct 17 '07

re: Use of chmod


On Wed, 17 Oct 2007 15:36:46 +0200, Sonnich Jensen
<sonnich.jensen@jotautomation.comwrote:
Quote:
Hi all
>
I have problem with:
>
$ff=dirname(__FILE__);
chmod("$ff/uus", 777);
chmod("uus", 777);
0777 != 777

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

chmode('/path/sub',0777);
Quote:
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
Closed Thread