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

search for in the

xattr_remove> <xattr_get
[edit] Last updated: Fri, 24 Jun 2011

view this page in

xattr_list

(PECL xattr >= 0.9.0)

xattr_list دریافت فهرست ویژگی توسعه یافته

Description

array xattr_list ( string $filename [, int $flags = 0 ] )

این تابع‌ها فهرست نام‌های ویژگی‌های توسعه یافته فایل را دریافت می‌کند.

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.

Parameters

filename

مسیر فایل.

flags

پرچم‌های پشتیبانی شده xattr
XATTR_DONTFOLLOW پیوند سمبولیک را دنبال نکنید و بر روی خود پیوند عمل کنید.
XATTR_ROOT ویژگی را در فضای نام (مورد اعتماد) ریشه تعیین کنید. نیازمند امتیاز ریشه است.

Return Values

این تابع آرایه نام‌های ویژگی توسعه یافته را باز می‌گرداند.

Examples

Example #1 چاپ نام تمام ویژگی‌های توسعه یافته فایل

<?php
$file 
'some_file';
$root_attributes xattr_list($fileXATTR_ROOT);
$user_attributes xattr_list($file);

echo 
"Root attributes: \n";
foreach (
$root_attributes as $attr_name) {
    
printf("%s\n"$attr_name);
}

echo 
"\n User attributes: \n";
foreach (
$attributes as $attr_name) {
    
printf("%s\n"$attr_name);
}

?>

See Also

  • xattr_get() - دریافت ویژگی توسعه یافته



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

 
show source | credits | stats | sitemap | contact | advertising | mirror sites