INTEGER fchmod(STRING mode[, STRING file])
This function changes the mode of a file or directory. The mode is an octal number constructed by logically OR-ing the following values:
4000 set-user-ID-on-execution 2000 set-group-ID-on-execution 1000 sticky bit, see the unix manual on chmod 0400 read by owner 0200 write by owner 0100 execute (or search for directories) by owner 0070 read, write, execute/search by group 0007 read, write, execute/search by others
The read, write, and execute/search values for group and others are en- coded as described for owner. Example:
fchmod("0644", "home.html")
=> 1
If the RESTRICTIVE_FILES option has been compiled into the driver, sticky and setuid/setgid bits cannot be changed.
dblog() | execute() | fchmod() | fclose() | feof() | fflush() | file() | files() | fmkdir() | fopen() | fread() | fremove() | frename() | frmdir() | fseek() | fstat() | fwrite()