Chmod: Operation not permitted
Posted: Wed Jun 24, 2009 4:34 am
Hi I've got a problem with chmod func and couldn't get it work...
under root folder:
Ive got a.php, b.php
Im trying to use a.php to set permission mode for b.php
I'm using LINX apach. and some chmod function run ok on the other file, which I used to set permission after creating an image file on the server.
So I ve got a few attempts:
1 - would it be the reason that I'm not the owner?
2 - safemode is off already, so this shouldn't be the cause.
3 - why some other functions can work? Do I miss anything?
Thanks for help folks
M
under root folder:
Ive got a.php, b.php
Im trying to use a.php to set permission mode for b.php
Code: Select all
<?php chmod("/b.php", 0777); ?>
So I ve got a few attempts:
1 - would it be the reason that I'm not the owner?
2 - safemode is off already, so this shouldn't be the cause.
3 - why some other functions can work? Do I miss anything?
Thanks for help folks
M