Installation is straight forward. Download getID3 from getid3.org, or the other locations provided (Github, SourceForge, etc) on the getID3 website.
Un-zip the files onto your website’s server…
I placed the unzipped files in a folder I called it getid3, in the root of my website on my testing server (localhost). You can place the file where you want, but make sure you use the correct path to call the files.
The path I used was as follows:
If testing locally (localhost), make sure your server is running (I’m using the XAMPP package).
Presuming you called the folder getid3 and placed it inside the root of your site, type the following in your browser (to display the ‘demo.browse.php’ page):
The demo page ‘demo.browse.php’ is displayed.
You may get a security message ‘ For security reasons, this demo has been disabled. It can be enabled by removing line 15 in demos/demo.browse.php’
Open ‘demo.browse.php’ using a text or code editor, and remove (delete) the line (in this case it was line 15 – See the images above and below).
Once removed, save the file and refresh the browser to re-load the ‘demo.browse.php’ page.
You will now get the following page (or something similar).
You now have getID3 working.
If you have downloaded the ‘getID3’ files, you can test ‘getID3’ as follows (using ‘demo.browse.php’ ).
Go to the ‘demo.browse.php’ search box and type in a location where an mp3 or similar media file can be found (that has ID3 tags).
Click the go button.
A list of files will be displayed.
Click on a media file that’s been listed (highlighted blue).
It’s ID3 tags and a whole list of other attributes will appear.
get id3 Example:
Here is an example where getID3 has been used to build a web page that displays a list of songs on a music player. getID3 has been used to automatically populate the fields in the music player.
When you add a song to the page, getID3 pulls out the metadata from the music file, and places it in the music player alongside the song. It’s great, you don’t have to type a thing!