• PHP Video Tutorials

PHP - xattr supported() Function



xattr_supported() function can check if filesystem support extended attributes.

Syntax

bool xattr_supported( string $filename [, int $flags ] )

xattr_supported() function can check if a filesystem holding a given file that supports extended attributes and read access to a file is required.

xattr_supported() function can return true if a filesystem can support extended attributes or false if it can't and null if it can't be determined (for instance, wrong path or lack of permissions to file).

Example

<?php
   $file = "some_file";

   if(xattr_supported($file)) {

   }
?>
php_function_reference.htm
Advertisements