问题
I have tried to find the file people are talking about namely php_id3.dll. I have read that you can install it with the id 3 on wamp but when i google it i get all sorts of scamsites.
Does anyone know where i can find it?
回答1:
All the information you need is in the official PHP documentation:
The error you get (undefined function) means the ID3 extension is not enabled in your PHP configuration:
- How to change configuration settings
If you don't have the ID3 extension file (it is probably named php_id3.dll or something similar), you must either find a place to download it, or build it yourself from source.
- ID3 installation
- Building on Windows
- Installation of PECL extensions
- Installing a PHP extension on Windows
- Downloading PECL extensions
- PECL Package ID3
- Building from source
回答2:
Download php-id3 from https://github.com/JamesHeinrich/getID3
Move it your project location, you require to include the file. Ex: require("getid3/getid3.php");
回答3:
A DLL for this PECL extension is currently unavailable. See also the building on Windows section.
Source : http://www.php.net/manual/en/id3.installation.php
回答4:
I was expecting something like apt-get install php5-id3v2, but this lib seems way to old and abandonned for that. It may still work, but is not very intuitive to install, for sure.
So I came up with another solution, which I found on stackexchange : https://unix.stackexchange.com/questions/4961/which-mp3-tagging-tool-for-linux
I installed the command line tool id3v2, which does exactly what I need : read and modify basic tags (album, artist, title, comment...)
It installs with a simple
apt-get install id3v2
and is very easy to use. here is an extract from the man page :
-t, --song SONG
Set the song title information
-c, --comment DESCRIPTION:COMMENT
Set the comment information
note :There was also another tool I didn't bother to try, in the same post : "eyeD3"
Hope this helps.
来源:https://stackoverflow.com/questions/11709295/how-to-install-php-id3-on-wamp