(PECL xattr >= 0.9.0)
xattr_remove — حذف ویژگی توسعه یافته
این تابع ویژگی توسعه یافته فایل را حذف میکند.
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.
فایل برای حذف ویژگی آن.
نام ویژگی برای حذف.
XATTR_DONTFOLLOW | پیوند سمبولیک را دنبال نکنید و بر روی خود پیوند عمل کنید. |
XATTR_ROOT | ویژگی را در فضای نام (مورد اعتماد) ریشه تعیین کنید. نیازمند امتیاز ریشه است. |
Returns TRUE on success or FALSE on failure.
Example #1 حذف تمام ویژگی توسعه یافته فایل
<?php
$file = 'some_file';
$attributes = xattr_list($file);
foreach ($attributes as $attr_name) {
xattr_remove($file, $attr_name);
}
?>