View file full mp3 & ringtone search/tag/tag.php

File size: 1.33Kb
<?php

$getID3 = new getID3; 
$getID3->setOption(array('encoding'=>$TextEncoding)); 

require_once('./getid3/write.php'); 
// Initialize getID3 tag-writing module 
$tagwriter = new getid3_writetags; 
//$tagwriter->filename = '/path/to/file.mp3'; 
$tagwriter->filename = ''.$DLFile.''; 

//$tagwriter->tagformats = array('id3v1', 'id3v2.3'); 
$tagwriter->tagformats = array('id3v2.3'); 

// set various options (optional) 
$tagwriter->overwrite_tags = true; 

$tagwriter->tag_encoding = $TextEncoding; 
$tagwriter->remove_other_tags = true; 

// populate data array 
$TagData = array( 
    'title'         => array('ur site tag'), 
    'artist'        => array('ur artist tag'), 
    'album'         => array('www.WhatsApp8.Com'), 
  
 
    'comment'       => array('Full Free Music Videos Downloads Visit On www.WhatsApp8.Com'), 
   

); 
$cover = "tag.jpg";
$TagData['attached_picture'][]=array(
    'picturetypeid'=>2, // Cover. More: module.tag.id3v2.php -> function APICPictureTypeLookup
    'description'=>'cover', // text field
    'mime'=>'image/jpeg', // Mime type image
    'data'=> file_get_contents($cover) // Image data; not the file name
);
$tagwriter->tag_data = $TagData; 

// write tags 
if ($tagwriter->WriteTags()) { 
    
    if (!empty($tagwriter->warnings)) { 
        
    } 
} else { 
    
}
?>