xattr_supported
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
xattr_supported
Референца за `function.xattr-supported.php` со подобрена типографија и навигација.
xattr_supported
(PECL xattr >= 1.0.0)
xattr_supported — Check if filesystem supports extended attributes
= NULL
This functions checks if the filesystem holding the given file supports extended attributes. Read access to the file is required.
Параметри
filename-
The path of the tested file.
flags-
Supported xattr flags XATTR_DONTFOLLOWНе следи симболична врска, туку работи на самата симболична врска.
Вратени вредности
Оваа функција враќа true if filesystem supports extended attributes,
false if it doesn't and null if it can't be determined (for example wrong path or lack of permissions to file).
Примери
Пример #1 xattr_supported() example
The following code checks if we can use extended attributes.
<?php
$file = 'some_file';
if (xattr_supported($file)) {
/* ... make use of some xattr_* functions ... */
}
?>