There are several highly developed id3 reader classes written in php that include id3v2 support, and support for other file formats (not just mpeg & id3). I recommend http://getid3.sourceforge.net/ as well as the id3 reader class integrated in the Zina is not Andromeda project (http://pancake.org/zina.html)
XLVI. ID3 Functions
소개
These functions let you read and manipulate ID3 tags. ID3 tags are used in MP3 files to store title of the song, as well as information about the artist, album, genre, year and track number.
요구 사항
이 확장 모듈을 빌드할 때 외부 라이브러리가 필요하지 않습니다.
설치
id3 is part of PECL and can be installed using the PEAR installer. To compile PHP with id3 support, downloadthe sourcecode, put it in php-src/ext/id3 and compile PHP using --enable-id3.
런타임 설정
이 확장 모듈은 php.ini 설정이 존재하지 않습니다.
리소스 종류
이 확장 모듈은 리소스형을 정의하지 않습니다.
Predefined Constants
Most of the id3 functions either let you specify or return a tag version. In order to specify the version please use on of these constants.
- ID3_V1_0 (integer)
ID3_V1_0 is used if you are working with ID3 V1.0 tags. These tags may contain the fields title, artist, album, genre, year and comment.
- ID3_V1_1 (integer)
ID3_V1_1 is used if you are working with ID3 V1.1 tags. These tags may all information contained in v1.0 tags plus the track number.
- ID3_V2 (integer)
ID3_V2 is used if you are working with ID3 V2.x tags. These tags are quite flexible and are currently not supported by the id3 extension.
- 차례
- id3_get_genre_id -- Get the id for a genre.
- id3_get_genre_list -- Get all possible genre values.
- id3_get_genre_name -- Get the name for a genre id.
- id3_get_tag -- Get all information stored in an ID3 tag
- id3_get_version -- Get version of an ID3 tag
- id3_remove_tag -- Remove an existing ID3 tag
- id3_set_tag -- Update information stored in an ID3 tag
ID3 Functions
11-Jul-2004 07:01
