PHP Classes

File: example.mp3.php

Recommend this page to a friend!
  Classes of mfboy   MP3 Class   example.mp3.php   Download  
File: example.mp3.php
Role: Example script
Content type: text/plain
Description: Example
Class: MP3 Class
Manipulate MP3 audio files
Author: By
Last change: new example
Date: 14 years ago
Size: 849 bytes
 

Contents

Class file image Download
<?php

// if you want to get more examples or the class with comments, please download this zip file:
// http://www.mfman.net/class.mp3.zip

require_once './class.mp3.php';
$mp3 = new mp3;

/*

    get the data of mp3 file:

        mp3::get_mp3($filepath, $analysis = false, $getframesindex = false)
        it will return an array or false

*/
$mp3->get_mp3('example.mp3', true, false);

/*

    set the tags of mp3 file

        set_mp3($file_input, $file_output, $id3v2 = array(), $id3v1 = array())
        it will return true or false

*/
$mp3->set_mp3('input.mp3', 'output.mp3', array(), array())

/*

    cut the mp3 file

        cut_mp3($file_input, $file_output, $startindex = 0, $endindex = -1, $indextype = 'frame', $cleantags = false)
        it will return true or false

*/
$mp3->cut_mp3('input.mp3', 'output.mp3', 0, -1, 'frame', false)

?>