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

search for in the

xattr_remove> <xattr_get
Last updated: Fri, 22 Aug 2008

view this page in

xattr_list

(PECL xattr:0.9-1.0)

xattr_list Obtiene una lista de los atributos extendidos

Descripción

array xattr_list ( string $nombre_archivo [, int $opciones ] )

La función obtiene una lista con los nombres de todos los atributos extendidos de un archivo.

Extended attributes have two different namespaces: user and root. The user namespace is available to all users, while the root namespace is available only to users with root privileges. xattr operates on the user namespace by default, but this can be changed with the flags parameter.

Lista de parámetros

nombre_archivo

La ruta al archivo.

opciones

Opciones de xattr soportadas
XATTR_DONTFOLLOW Realizar las operaciones en el propio enlace simbólico (no seguirlo).
XATTR_ROOT Establecer atributo en el espacio de nombres raíz (y de confianza). Requiere privilegios de root.

Valores retornados

La función devuelve una matriz con los nombres de los atributos extendidos.

Ejemplos

Example #1 Muestra el nombre de todos los atributos extendidos de un archivo

<?php
$archivo 
'el_archivo';
$atributos_root xattr_list($archivoXATTR_ROOT);
$atributos_usuario xattr_list($archivo);

echo 
"Atributos root: \n";
foreach (
$atributos_root as $nombre_atributo) {
    
printf("%s\n"$nombre_atributo);
}

echo 
"\n Atributos de usuario: \n";
foreach (
$atributos as $nombre_atributo) {
    
printf("%s\n"$nombre_atributo);
}

?>

Ver también



add a note add a note User Contributed Notes
xattr_list
There are no user contributed notes for this page.

xattr_remove> <xattr_get
Last updated: Fri, 22 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites