id3_get_tag() problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Bomas
Forum Newbie
Posts: 24
Joined: Sun Oct 17, 2004 2:41 am
Location: Heverlee, Belgium

id3_get_tag() problem

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
User avatar
Bomas
Forum Newbie
Posts: 24
Joined: Sun Oct 17, 2004 2:41 am
Location: Heverlee, Belgium

Post by Bomas »

thanx

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

Greetz,
UnrealEd
Post Reply