Description
int
chmod ( string filename, int mode)
Attempts to change the mode of the file specified by
filename to that given in
mode.
Note that mode is not automatically
assumed to be an octal value, so strings (such as "g+w") will
not work properly. To ensure the expected operation,
you need to prefix mode with a zero (0):
Returns TRUE on success and FALSE otherwise.
See also chown() and
chgrp().
Note: This function is not
implemented on Windows platforms.