[ILUG-BOM] chmod in PHP
kapil_karekar at antispam
Wed Oct 23 11:35:12 IST 2002
I've been trying to change the opermissions of a particular file using the chmod command in php. Though a ver trivial operation ... it is not working.
the command i'm using is:
i'm getting the following error:
Warning: chmod failed: Operation not permitted in /var/www/html/new.php on line 2
Both the files viz. new.dat and new.php have the same owner and group.
the current permissions for new.dat are -rw-r--r--
and permissions for new.php are -rwxr-xr-x
what could be the issue?
Any suggestions will be appreciated :-)
More information about the Linuxers