PHP: chmod - Manual - PHP: Hypertext Preprocessor
Parameters filename Path to the file. mode Note that mode is not automatically assumed to be an octal value, so to ensure the expected operation, you need to prefix mode with a zero (0). Strings such as "g+w" will not work properly....