Webhosting and cheap domain registration services


PHP Manual

CXX. xattr Functions


xattr extension allows to manipulate extended attributes on filesystems that support them.


To use xattr, you will need libattr installed, available on the Linux XFS homepage ftp://oss.sgi.com/projects/xfs/download.


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:

Example 1. xattr install by hand

gunzip xattr-xxx.tgz
tar -xvf xattr-xxx.tar
cd xattr-xxx
./configure && make && make install

Predefined Constants

The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.

XATTR_ROOT (integer)


XATTR_CREATE (integer)


Table of Contents
xattr_get --  Get an extended attribute.
xattr_list --  Get a list of extended attributes.
xattr_remove --  Remove an extended attribute.
xattr_set --  Set an extended attribute.






 Network sites:

Cheap domain registration & cheap domain name transfer
Active-Domain.com : Domain register and domain search services

Disclaimer: This documentation is provided only for the benefits of our hosting customers.
For authoritative source of the documentation, please refer to http://www.php.net/docs.php