Compo pearoast #2
From the Kids TV from the Planet Wrong challenge. See all 584 entries (closed)
( , Fri 4 Jun 2004, 23:18, archived)
From the Kids TV from the Planet Wrong challenge. See all 584 entries (closed)
( , Fri 4 Jun 2004, 23:18, archived)
can i tj with a quick technical question
is it possible to change file permissions from within a php script?
( ,
Fri 4 Jun 2004, 23:21,
archived)
I don't know.. But what I DO know is that I like chocolate biscuits..
Huzzah!
( ,
Fri 4 Jun 2004, 23:23,
archived)
yep
uk.php.net/manual/en/function.chmod.php
watch out for the umask gotcha, it works a bit differently to chmod on the command line.
( ,
Fri 4 Jun 2004, 23:26,
archived)
watch out for the umask gotcha, it works a bit differently to chmod on the command line.
cheers muchly
i really ought to have looked for that function name... silly me
( ,
Fri 4 Jun 2004, 23:29,
archived)
add a 0 before the normal mode
so:
chmod( 'filename', 0755 );
is equiv to
bash$ chmod 755 filename
( ,
Fri 4 Jun 2004, 23:33,
archived)
chmod( 'filename', 0755 );
is equiv to
bash$ chmod 755 filename
naughty Brians testing on animals
Virgil looks really pissed off
woo!
( ,
Fri 4 Jun 2004, 23:25,
archived)
woo!