Page 1 of 1

chmod problems

Posted: Fri Mar 28, 2003 7:43 pm
by jiop
i am attempting to change the file permissions of a file so that i can write to it but i am getting the following warning

Warning: chmod() [function.chmod]: Operation not permitted in script.php on line 40

Code: Select all

// line 40
chmod("mydirectory/$a.php", 0666);
i am pretty sure i am using the function right because i checked php.net... is it just that my server does not allow for chmod to be used?

any input or help is appreciated :D

Posted: Fri Mar 28, 2003 9:21 pm
by m3mn0n
This and This. 8)

Posted: Fri Mar 28, 2003 9:37 pm
by phice
Besure the parent folder of the file is CHMODed to 777.

Posted: Sat Mar 29, 2003 2:07 pm
by jiop
Thanks for all your help!! It definetely helped solve the problem :D