The xattr extension allows for the manipulation of extended attributes on a filesystem.
To use xattr, you will need libattr installed. It is available at http://oss.sgi.com/projects/xfs/.
注意: These functions only work on filesystems that support extended attributes, and have them enabled at mount time. Some common filesystems that support extended attributes are ext2, ext3, reiserfs, jfs, and xfs.
xattr is currently available through PECL http://pecl.php.net/package/xattr.
If PEAR is available on your *nix-like system you can use the pear installer to install the xattr extension, by the following command: pear -v install xattr.
You can always download the tar.gz package and install xattr by hand:
これらの定数は、この拡張モジュールで定義されており、 この拡張モジュールがPHP内部にコンパイルされているか実行時に動的にロー ドされるかのどちらかの場合のみ使用可能です。
Set attribute in root (trusted) namespace. Requires root privileges.
Do not follow the symbolic link but operate on symbolic link itself.
Function will fail if extended attribute already exists.
Function will fail if extended attribute doesn't exist.