Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Lorenzo Simionato  >  FLAC Tags  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Simple usage example
Class: FLAC Tags
Retrieve metadata from FLAC audio files
Author: By
Last change: -
Date: 7 years ago
Size: 395 bytes
 

Contents

Class file image Download
<?php
include("flacTags.php");

$ftag=new flacTags("Syrinx.flac");

if(
$ftag->readTags()==false) {
  echo 
"ERROR:";
  echo 
$ftag->getError();
}
else {
  echo 
"Vendor String: ";
  echo 
$ftag->getVendorString();

  echo 
"<br><br>Title: ";
  echo 
$ftag->getComment("TITLE");

  echo 
"<br><br>All information:<br><br>";
  
$infos=$ftag->getAllComments();
  
print_r($infos);
}

?>