PHP filegroup () function
Definition and Usage
filegroup () function returns the specified file group ID.
If successful, the function returns the specified file belongs to the group ID. If it fails, it returns FALSE.
grammar
filegroup(filename)
参数 | 描述 |
---|---|
filename | 必需。规定要检查的文件。 |
Tips and Notes
Note: The results of this function are cached.Use clearstatcache () to clear the cache.
Note: This function does not run on Windows systems.
Tip: Use posix_getgrgid () to convert the group ID group name.
Examples
<?php
echo filegroup("test.txt");
?>
echo filegroup("test.txt");
?>
Complete PHP Filesystem Reference Manual