Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : xattr Functions : xattr_list

xattr_list

Get a list of extended attributes (PECL xattr:0.9-1.0)
array xattr_list ( string filename [, int flags] )

Example 2625. Prints names of all extended attributes of file

<?php
$file
= 'some_file';
$root_attributes = xattr_list($file, XATTR_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);
}

?>

Change Language


Follow Navioo On Twitter
xattr_get
xattr_list
xattr_remove
xattr_set
xattr_supported
eXTReMe Tracker