I am looking for a way to change ID3 tag information for an MP3 file with PHP. I know there are several ways to read the tag info with PHP classes and scripts, but has anyone run into a way to write?
I would like to be able to change title, artist, etc. (including album art) with php.
base64?
Any thoughts? ideas? suggestions?
Writing ID3 Tag in MP3 File
Moderator: General Moderators
reinvent the wheel you should not.
do this exactly getID3 will
http://sourceforge.net/projects/getid3/
do this exactly getID3 will
http://sourceforge.net/projects/getid3/
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
learn to use google you should. (sorry Burr, had to)spamyboy wrote:What is ID3 ?
http://www.id3.org/history.html
You may want to read the readme.txt file that goes with ID3 tagzimick7 wrote:I had seen getID3 before, but I thought it only was able to extract (read) from an ID3 tag...
Thanks for the info... I will check it out more in depth.
Code: Select all
// Writing tags: require_once('getid3.php'); $getID3 = new getID3; getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'write.php', __FILE__); $tagwriter = new getid3_writetags; $tagwriter->filename = $Filename; $tagwriter->tagformats = array('id3v2.3', 'ape'); $TagData['title'][] = 'Song Title'; $TagData['artist'][] = 'Artist Name'; $tagwriter->tag_data = array(; if ($tagwriter->WriteTags()) { echo 'success'; } else { echo 'failure'; }
