PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<chmodclearstatcache>
Last updated: Mon, 16 Jul 2012

chown

(PHP 3, PHP 4, PHP 5)

chown -- 改变文件的所有者

说明

bool chown ( string filename, mixed user )

尝试将文件 filename 的所有者改成用户 user(由用户名或用户 ID 指定)。只有超级用户可以改变文件的所有者。

如果成功则返回 TRUE,失败则返回 FALSE

注: 本函数不能作用于远程文件,被检查的文件必须通过服务器的文件系统访问。

参见 chmod()




<chmodclearstatcache>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST