
- PHP Tutorial
- PHP - Home
- PHP - Introduction
- PHP - Environment Setup
- PHP - Syntax Overview
- PHP - Variable Types
- PHP - Constants
- PHP - Operator Types
- PHP - Decision Making
- PHP - Loop Types
- PHP - Arrays
- PHP - Strings
- PHP - Web Concepts
- PHP - GET & POST
- PHP - File Inclusion
- PHP - Files & I/O
- PHP - Functions
- PHP - Cookies
- PHP - Sessions
- PHP - Sending Emails
- PHP - File Uploading
- PHP - Coding Standard
- Advanced PHP
- PHP - Predefined Variables
- PHP - Regular Expression
- PHP - Error Handling
- PHP - Bugs Debugging
- PHP - Date & Time
- PHP & MySQL
- PHP & AJAX
- PHP & XML
- PHP - Object Oriented
- PHP - For C Developers
- PHP - For PERL Developers
- PHP Form Examples
- PHP - Form Introduction
- PHP - Validation Example
- PHP - Complete Form
- PHP login Examples
- PHP - Login Example
- PHP - Facebook Login
- PHP - Paypal Integration
- PHP - MySQL Login
- PHP AJAX Examples
- PHP - AJAX Search
- PHP - AJAX XML Parser
- PHP - AJAX Auto Complete Search
- PHP - AJAX RSS Feed Example
- PHP XML Example
- PHP - XML Introduction
- PHP - Simple XML
- PHP - Simple XML GET
- PHP - SAX Parser Example
- PHP - DOM Parser Example
- PHP Frame Works
- PHP - Frame Works
- PHP - Core PHP vs Frame Works
- PHP Design Patterns
- PHP - Design Patterns
- PHP Function Reference
- PHP - Built-In Functions
- PHP Useful Resources
- PHP - Questions & Answers
- PHP - Useful Resources
- PHP - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
PHP - xattr Functions
The xattr extension can allow for the manipulation of extended attributes on a filesystem.
To use xattr, we can need a libattr installed.
These functions can only work on filesystems that support extended attributes and have enabled at mount time. Some common filesystems that support extended attributes: ext2, ext3, reiserfs, jfs, and xfs.
This extension doesn't have configuration directives defined in php.ini.
This extension has no resource types defined.
Predefined Constants
The constants are defined below by this extension and can only be available when an extension has either compiled into PHP or dynamically loaded at runtime.
- XATTR_ROOT (integer) − Set attribute in root (trusted) namespace. Requires root privileges.
- XATTR_DONTFOLLOW (integer) − Do not follow the symbolic link but operate on symbolic link itself.
- XATTR_CREATE (integer) − Function will fail if extended attribute already exists.
- XATTR_REPLACE (integer) − Function will fail if extended attribute doesn't exist.
Sr.No | Function & Description |
---|---|
1 | xattr_get()
Function can get an extended attribute. |
2 | xattr_list()
Function can get a list of extended attributes. |
3 | xattr_remove()
Function can remove an extended attribute. |
4 | xattr_set()
Function can set an extended attribute. |
5 | xattr_list()
Function can check if filesystem support extended attributes. |