filegroup

(PHP 3, PHP 4, PHP 5)

filegroup -- 取得文件的组

说明

int filegroup ( string filename )

取得该文件所属组的 ID。如果出错则返回 FALSE。组 ID 以数字格式返回,用 posix_getgrgid() 来将其解析为组名。如果失败返回 FALSE 以及一个 E_WARNING 级别的错误。

本函数的结果会被缓存。详细信息见 clearstatcache()

注: 本函数的结果会被缓存。更多信息参见 clearstatcache()

提示: PHP 5.0.0 起本函数也可被某些 URL wrapper 使用。参考附录 L 来看哪些 wrapper 支持 stat() 系列函数的功能。

参见 fileowner()safe_mode_gid


add a note add a note User Contributed Notes
There are no user contributed notes for this page.