Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : xattr Functions : xattr_set

xattr_set

Set an extended attribute (PECL xattr:0.9-1.0)
bool xattr_set ( string filename, string name, string value [, int flags] )

Example 2627. Sets extended attributes on .wav file

<?php
$file
= 'my_favourite_song.wav';
xattr_set($file, 'Artist', 'Someone');
xattr_set($file, 'My ranking', 'Good');
xattr_set($file, 'Listen count', '34');

/* ... other code ... */

printf("You've played this song %d times", xattr_get($file, 'Listen count'));
?>

Change Language


Follow Navioo On Twitter
xattr_get
xattr_list
xattr_remove
xattr_set
xattr_supported
eXTReMe Tracker