chown
(PHP 4, PHP 5)
chown — Changes file owner
說明
bool chown
( string $filename
, mixed $user
)
Attempts to change the owner of the file filename to user user . Only the superuser may change the owner of a file.
參數
- filename
-
Path to the file.
- user
-
A user name or number.
Return值
如果成功則回傳 TRUE,失敗則回傳 FALSE。