PHP xattr Functions

EditRocket provides the following information on xattr functions in the PHP source code builder.

string xattr_get ( string $filename , string $name [, int $flags ] ) - This function gets the value of an extended attribute of a file.

array xattr_list ( string $filename [, int $flags ] ) - This functions gets a list of names of extended attributes of a file.

bool xattr_remove ( string $filename , string $name [, int $flags ] ) - This function removes an extended attribute of a file.

bool xattr_set ( string $filename , string $name , string $value [, int $flags ] ) - This function sets the value of an extended attribute of a file.

bool xattr_supported ( string $filename [, int $flags ] ) - This functions checks if the filesystem holding the given file supports extended attributes. Read access to the file is required.