1

I want to print mp3 file details like title, artist, album, year, genre. so I use id3_get_tag in php . But when I try to run this code it gives me error.

I dont know how to get details of mp3 file .

My php code:

<?php
$tag = id3_get_tag( "file.mp3");
print_r($tag);
?>

When I run this code. I got this error

Fatal error: Call to undefined function id3_get_tag() in C:\wamp\www\uploader\test1.php on line 2

Maak
  • 4,720
  • 3
  • 28
  • 39
ajay savaliya
  • 37
  • 1
  • 4
  • undefined function id3_get_tag() http://stackoverflow.com/questions/11709295/how-to-install-php-id3-on-wamp – websky Feb 12 '15 at 12:26

2 Answers2

0

The error you get (undefined function) means the ID3 extension is not enabled in your PHP configuration:

kamil
  • 17
  • 2
0

The error you get (undefined function) means the ID3 extension is not enabled in your PHP configuration:

http://www.php.net/manual/en/configuration.changes.php

If you don't have the ID3 extension you should install it by downloading or building it yourself from source.

http://www.php.net/manual/en/id3.installation.php

amin saffar
  • 1,953
  • 3
  • 22
  • 34