PHP Manuál | ||
---|---|---|
Predchádzajúci | Nasledujúci |
This function sets the value of an extended attribute of a file.
Roz��ren� atrib�ty maj� dve odli�n� namespacey: user a root namespace. User namespace je dostupn� pre v�etk�ch u��vate�ov, zatia��o root namespace je dostupn� iba pre u��vate�a s rootovsk�mi privil�giami. xattr ako default pracuje na user namespace, ale m�ete to zmeni� pomocou argumentu flags.
The file in which we set the attribute.
The name of the extended attribute. This attribute will be created if it doesn't exist or replaced otherwise. You can change this behaviour by using the flags parameter.
The value of the attribute.
Tabuľka 1. Supported xattr flags
XATTR_CREATE | Function will fail if extended attribute already exists. |
XATTR_REPLACE | Function will fail if extended attribute doesn't exist. |
XATTR_DONTFOLLOW | Do not follow the symbolic link but operate on symbolic link itself. |
XATTR_ROOT | Set attribute in root (trusted) namespace. Requires root privileges. |
Predchádzajúci | Domov | Nasledujúci |
xattr_remove | Hore | xattr_supported |