Toms Homepage
  Home    Downloads    Your Account    Forums  
  Create an account
Modules
· Home
· Games
· My Gallery
· PHP Manual
· PHP-Nuke HOWTO
· Web Links
· Your Account
 
Who's Online
Welcome, Anonymous
Nickname

Password

Security Code
Security Code
Type Security Code


(Register)

Membership:
Latest: TammiMccl
New Today: 8
New Yesterday: 525
Overall: 46385

People Online:
Visitors: 89
Members: 17
Total: 106

Online Now:
COM LydiaSdw
COM HymanRidd
 evelaDevyNano
COM SherylVid
COM IsmaelLan
 InesJeffr
COM MarcelaTe
 AntjeLloy
COM ClarkK15
Indonesia Layne89K
COM Arturo970
 DanutaHar
COM EricaHank
 GottceneMew
COM DorcasO26
COM TammiMccl
COM TanjaMcke
 
xattr_remove

xattr_remove

(no version information, might be only in CVS)

xattr_remove --  Remove an extended attribute

Description

bool xattr_remove ( string filename, string name [, int flags] )

This function removes an extended attribute of a file.

Extended attributes have two different namespaces: user and root namespace. User namespace is available for all users while root namespace is available only for user with root privileges. xattr operates on user namespace by default, but you can change that using flags argument.

Parameters

filename

The file from which we remove the attribute.

name

The name of the attribute to remove.

flags

Table 1. Supported xattr flags

XATTR_DONTFOLLOW Do not follow the symbolic link but operate on symbolic link itself.
XATTR_ROOT Set attribute in root (trusted) namespace. Requires root privileges.



Return Values

Returns TRUE on success or FALSE on failure.

Examples

Example 1. Removes all extended attributes of a file

<?php
$file
= 'some_file';
$attributes = xattr_list($file);

foreach (
$attributes as $attr_name) {
    
xattr_remove($file, $attr_name);
}
?>


All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2004 by Tom Nitzschner.
Web site engine code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.094 Seconds

:: VereorLCARS phpbb2 style by Vereor :: PHP-Nuke theme by www.nukemods.com ::