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



PHP : Function Reference : ID3 Functions : id3_set_tag

id3_set_tag

Update information stored in an ID3 tag (PECL id3:0.1-0.2)
bool id3_set_tag ( string filename, array tag [, int version] )

Example 977. id3_set_tag() example

<?php
$data
= array(
             
"title" => "Re:Start",
             
"artist" => "Re:\Legion",
             
"comment" => "A nice track"
           
);
$result = id3_set_tag( "path/to/example.mp3", $data, ID3_V1_0 );
if (
$result === true) {
   echo
"Tag succesfully updated\n";
}
?>

If the file is writable, this will output:

Tag succesfully updated

Change Language


Follow Navioo On Twitter
id3_get_frame_long_name
id3_get_frame_short_name
id3_get_genre_id
id3_get_genre_list
id3_get_genre_name
id3_get_tag
id3_get_version
id3_remove_tag
id3_set_tag
eXTReMe Tracker