Page 1 of 1

id3_get_tag() problem

Posted: Wed Dec 14, 2005 12:05 pm
by Bomas
hi all,

i know this is a rather advanced feature, but i really need some help with this.

I made a file-search script to run on a server containing lots of files. People just type in their keyword and it maches the file to the keyword. But as there are a lot of mp3 and movies on it (its not a public server, srry guys :) ) i wanted to make an option so users can select a way to search. Those ways would be: filename, artist, number, album.

To get this working i needed the id3 functions of php. Well i just tried something easy ( id3_get_tag($_SERVER['DOCUMENT_ROOT']."/myfile.mp3") but it gave an error:
Fatal error: Call to undefined function: id3_get_tag() in /opt/www/cofadmin/web/www.cities-of-faith.com/temp2.php on line 2

i looked on the http://www.php.net website and it said: "no extra information, maybe only used in CVS)".
Does anybody knows what the problem is, knows a solution, and /or could help me?

Many thx in advance
Greetz,
Bomas

Posted: Wed Dec 14, 2005 12:41 pm
by Chris Corbyn
As far as I know that function is part of an id3 library on hotscripts. You need to download a class to use it.

I have it on my hard drive actually.. It's called "getid3" if you have a search.

Posted: Wed Dec 14, 2005 3:39 pm
by Bomas
thanx

anyone who needs this as well, here's a link to download it:
http://prdownloads.sourceforge.net/geti ... =peterhost

Greetz,
UnrealEd