Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to install id3 for php - what is the good alternative?

Tags:

php

id3

i have a website (personal site) where i upload my music. i am a dj in clubs and for my mix i use my site to manage my music i create.

so ultimately i want to create mix online so now i have a share hosting and i cannot install the mp3 id3 and i am looking for alternative.

i looked online and found a lot of custom classes where i can read id3 tags.

what i want to know is this:

is it better to use the one that comes with php (which means change my current host) or i should use a script (and which one is the best?)?

thanks

like image 258
mario bros Avatar asked Jan 03 '12 12:01

mario bros


2 Answers

Installing a php module (even if it's as easy as yum install or apt-get install) is limited to what you get from the library. Also, if the ID3 change (like upgrading to a different version) you will have to wait for the library to be updated and re-install it again (unless you want to modify yourself of course).

The PHP library (yes might be a little slower) can be very useful when ID tag are upgraded or modified. You can easily change the PHP code to match what you need and rapidly be able to mange your music library.

I've tried many libraries and I recommend http://getid3.sourceforge.net/

like image 45
Book Of Zeus Avatar answered Nov 11 '22 17:11

Book Of Zeus


compiling is faster, if you need speed compile it.

or you can use: http://getid3.sourceforge.net/

like image 191
aki Avatar answered Nov 11 '22 18:11

aki