How to install php_id3 on wamp?

拈花ヽ惹草 提交于 2019-11-28 01:40:50

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:

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.

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");

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

Balmipour

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!