分配read &使用php将文件权限写入特定用户的特定文件


Assign read & write file permission to a specific user for a specific file using php

我想更改特定用户对特定文件的文件权限。所有这些都需要php来完成。我用chmod(file_path, 0644)。但这行不通。

请建议。

缺少"$" ?

chmod($file_path, 0644)