PHP Classes
Icontem

File: example.mp3.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of mfboy  >  MP3 Class  >  example.mp3.php  
File: example.mp3.php
Role: Example script
Content type: text/plain
Description: Example
Class: MP3 Class
Manipulate MP3 audio files
 

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'truefalse);

/*

    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)

?>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products