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:
chmod("/var/www/cgi-bin/new.dat", 0777);
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.dat are -rwxr-xr-x
what could be the issue?
Any suggestions will be appreciated :-)
Kapil
On Wed, 23 Oct 2002 kapil_karekar@vsnl.net wrote:
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.
fix your line length.
are the files owned by the user that the php script is running as? I think not.
On Wed, 23 Oct 2002, Saswata Banerjee & Associates wrote:
fix your line length.
What exactly does that mean ?
It means make sure all lines in outgoing email (with the possible exception of source code) are wrapped at about 72-74 characters.
(FYI, I use M$ Outlook Express as the email client)
It's okay. Nobody's perfect.