PHP Classes

File: example_writing.php

Recommend this page to a friend!
  Classes of Karol Babioch  >  Id3v1  >  example_writing.php  >  Download  
File: example_writing.php
Role: Example script
Content type: text/plain
Description: Contains a writing example
Class: Id3v1
Read and write metadata from MP3 audio files
Author: By
Last change:
Date: 14 years ago
Size: 1,628 bytes


Class file image Download
    Id3v1 - Class for manipulating Id3v1 tags
    Copyright (C) 2007 Karol Babioch

    This program is free software; you can
    redistribute it and/or modify it under the terms
    of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of
    the License, or (at your option) any later version.

    This program is distributed in the hope that it
    will be useful, but WITHOUT ANY WARRANTY; without
    even the implied warranty of MERCHANTABILITY or
    General Public License for more details.

    You should have received a copy of the GNU
    General Public License along with this program;
    if not, write to the Free Software Foundation,
    Inc., 51 Franklin St, Fifth Floor, Boston,
    MA 02110, USA

 * @package Id3v1

 * Enabling full error reporting

 * Requiring Id3v1 class
require_once 'class.Id3v1.php';

 * Initialising Id3v1 object
$id3v1 = new Id3v1('test.mp3');
 * Retrieving Id3 tag "title".
echo $id3v1->setTitle('Test title');
 * Works the same
echo $id3v1->title = 'Test title';
 * Finally you have to save the changes

 * The class also offers a fluent interface
->setTitle('Test title')
setArtist('Test artist')

 * I hove this help files could give you a view in the quick and easy
 * api behind this class. All other information you can get out of the
 * api documentation or by contacting me.

For more information send a message to info at phpclasses dot org.