Everything you need to know about getID3 can be found at getid3.org.
If you’re using WordPress, getID3 is already included in the core WordPress files, so you don’t need to download anything. See my article on How to use Multimedia Metadata in WordPress for more info:
How do I install getID3?
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:
D:\websites\XAMPP\htdocs\example.com
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):
https://example.com/getID3/demos/demo.browse.php
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.
Testing getID3:
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!
The correct path has probably not been specified in the browser.
Note: the full path has to be used. A good example is to display a WordPress page, you may only have to specify the shorter ‘theme’ directory path. i.e.
‘https://example.com/media/’
Whereas with getID3 you need to specify the full path.
Using the getID3 ‘demo.browse.php’ search box. type in the full path: