PHP: xattr Functions - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

xattr_get win32_stop_service

Last updated: Fri, 26 Jan 2007

view this page in

# CLXXIII. xattr Functions

# Введение

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:

Пример 1. xattr install by hand

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

# Предопределенные константы

Перечисленные ниже константы определены данным расширением и могут быть доступны только в том случае, если PHP был собран с поддержкой этого расширения или же в том случае, если данное расширение подгружается во время выполнения.

`XATTR_ROOT` (integer)

  Set attribute in root (trusted) namespace. Requires root privileges.

`XATTR_DONTFOLLOW` (integer)

  Do not follow the symbolic link but operate on symbolic link itself.

`XATTR_CREATE` (integer)

  Function will fail if extended attribute already exists.

`XATTR_REPLACE` (integer)

  Function will fail if extended attribute doesn't exist.

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

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 11:33:19 2007 PST