©
This document uses PHP Chinese website manual Release
安装此 PECL 扩展相关的信息可在手册中标题为 PECL 扩展的安装章节中找到。更多信息如新的发行版本、下载、源文件、 维护人员信息及变更日志等,都在此处: » http://pecl.php.net/package/id3.
PECL 扩展的 DLL 当前不可用。参见 在 Windows 上构建章节。
[#1] kamil at rajkowski dot net [2013-12-19 12:50:36]
Due to API change in PHP 5.4 you have to make change in "id3.c"
Have to change in line 196:
function_entry id3_functions[] = {
into
zend_function_entry id3_functions[] = {
Without it you won't be able to install id3 extension.
[#2] thephpguru at hotmail dot com [2011-08-17 07:16:03]
To install the PHP/Pecl audio file ID3 functions onto Fedora 13 with Apache 2.2.17:
1) Download PHP5.X or higher.
2) Configure, Make and Make Install PHP as desired.
2) After PHP is up and running download the latest version of ID3.X (0.2 or higher)
3) CD to php5.X/ext dir.
4) Uncompress ID3.x into the ext dir.
5) CD into your ID3.X dir.
6) Run the following:
1) phpize (ignore phpize failed error).
2) ./configure
3) make
4) make install
7) Add extension=/SomeDir/SomeDir/php-5.X/ext/id3-0.2/modules/id3.so to your php.ini file.
8) Restart Apache.
9) Test your installation with a MP3 that has valid ID3 Tags. I suggest that you edit your mp3 file with EasyTag or Kid3 (Preferred. Be sure to convert the tags to version 2.3 from the tools menu).