/////////////////////////////////////////////////////////////////
/// getID3() by James Heinrich <info@getid3.org> //
// available at http://getid3.sourceforge.net //
// or http://www.getid3.org //
/////////////////////////////////////////////////////////////////
*****************************************************************
*****************************************************************
getID3() is released under multiple licenses. You may choose
from the following licenses, and use getID3 according to the
terms of the license most suitable to your project.
GNU GPL: https://gnu.org/licenses/gpl.html (v3)
https://gnu.org/licenses/old-licenses/gpl-2.0.html (v2)
https://gnu.org/licenses/old-licenses/gpl-1.0.html (v1)
GNU LGPL: https://gnu.org/licenses/lgpl.html (v3)
Mozilla MPL: http://www.mozilla.org/MPL/2.0/ (v2)
getID3 Commercial License: http://getid3.org/#gCL (payment required)
*****************************************************************
*****************************************************************
Copies of each of the above licenses are included in the 'licenses'
directory of the getID3 distribution.
+---------------------------------------------+
| If you want to donate, there is a link on |
| http://www.getid3.org for PayPal donations. |
+---------------------------------------------+
Quick Start
===========================================================================
Q: How can I check that getID3() works on my server/files?
A: Unzip getID3() to a directory, then access /demos/demo.browse.php
Support
===========================================================================
Q: I have a question, or I found a bug. What do I do?
A: The preferred method of support requests and/or bug reports is the
forum at http://support.getid3.org/
Sourceforge Notification
===========================================================================
It's highly recommended that you sign up for notification from
Sourceforge for when new versions are released. Please visit:
http://sourceforge.net/project/showfiles.php?group_id=55859
and click the little "monitor package" icon/link. If you're
previously signed up for the mailing list, be aware that it has
been discontinued, only the automated Sourceforge notification
will be used from now on.
What does getID3() do?
===========================================================================
Reads & parses (to varying degrees):
# tags:
* APE (v1 and v2)
* ID3v1 (& ID3v1.1)
* ID3v2 (v2.4, v2.3, v2.2)
* Lyrics3 (v1 & v2)
# audio-lossy:
* MP3/MP2/MP1
* MPC / Musepack
* Ogg (Vorbis, OggFLAC, Speex)
* AAC / MP4
* AC3
* DTS
* RealAudio
* Speex
* DSS
* VQF
# audio-lossless:
* AIFF
* AU
* Bonk
* CD-audio (*.cda)
* FLAC
* LA (Lossless Audio)
* LiteWave
* LPAC
* MIDI
* Monkey's Audio
* OptimFROG
* RKAU
* Shorten
* TTA
* VOC
* WAV (RIFF)
* WavPack
# audio-video:
* ASF: ASF, Windows Media Audio (WMA), Windows Media Video (WMV)
* AVI (RIFF)
* Flash
* Matroska (MKV)
* MPEG-1 / MPEG-2
* NSV (Nullsoft Streaming Video)
* Quicktime (including MP4)
* RealVideo
# still image:
* BMP
* GIF
* JPEG
* PNG
* TIFF
* SWF (Flash)
* PhotoCD
# data:
* ISO-9660 CD-ROM image (directory structure)
* SZIP (limited support)
* ZIP (directory structure)
* TAR
* CUE
Writes:
* ID3v1 (& ID3v1.1)
* ID3v2 (v2.3 & v2.4)
* VorbisComment on OggVorbis
* VorbisComment on FLAC (not OggFLAC)
* APE v2
* Lyrics3 (delete only)
Requirements
===========================================================================
* PHP 4.2.0 up to 5.2.x for getID3() 1.7.x (and earlier)
* PHP 5.0.5 (or higher) for getID3() 1.8.x (and up)
* PHP 5.0.5 (or higher) for getID3() 2.0.x (and up)
* at least 4MB memory for PHP. 8MB or more is highly recommended.
12MB is required with all modules loaded.
Usage
===========================================================================
See /demos/demo.basic.php for a very basic use of getID3() with no
fancy output, just scanning one file.
See structure.txt for the returned data structure.
*> For an example of a complete directory-browsing, <*
*> file-scanning implementation of getID3(), please run <*
*> /demos/demo.browse.php <*
See /demos/demo.mysql.php for a sample recursive scanning code that
scans every file in a given directory, and all sub-directories, stores
the results in a database and allows various analysis / maintenance
operations
To analyze remote files over HTTP or FTP you need to copy the file
locally first before running getID3(). Your code would look something
like this:
// Copy remote file locally to scan with getID3()
$remotefilename = 'http://www.example.com/filename.mp3';
if ($fp_remote = fopen($remotefilename, 'rb')) {
$localtempfilename = tempnam('/tmp', 'getID3');
if ($fp_local = fopen($localtempfilename, 'wb')) {
while ($buffer = fread($fp_remote, 8192)) {
fwrite($fp_local, $buffer);
}
fclose($fp_local);
// Initialize getID3 engine
$getID3 = new getID3;
$ThisFileInfo = $getID3->analyze($filename);
// Delete temporary file
unlink($localtempfilename);
}
fclose($fp_remote);
}
See /demos/demo.write.php for how to write tags.
What does the returned data structure look like?
===========================================================================
See structure.txt
It is recommended that you look at the output of
/demos/demo.browse.php scanning the file(s) you're interested in to
confirm what data is actually returned for any particular filetype in
general, and your files in particular, as the actual data returned
may vary considerably depending on what information is available in
the file itself.
Notes
===========================================================================
getID3() 1.x:
If the format parser encounters a critical problem, it will return
something in $fileinfo['error'], describing the encountered error. If
a less critical error or notice is generated it will appear in
$fileinfo['warning']. Both keys may contain more than one warning or
error. If something is returned in ['error'] then the file was not
correctly parsed and returned data may or may not be correct and/or
complete. If something is returned in ['warning'] (and not ['error'])
then the data that is returned is OK - usually getID3() is reporting
errors in the file that have been worked around due to known bugs in
other programs. Some warnings may indicate that the data that is
returned is OK but that some data could not be extracted due to
errors in the file.
getID3() 2.x:
See above except errors are thrown (so you will only get one error).
Disclaimer
===========================================================================
getID3() has been tested on many systems, on many types of files,
under many operating systems, and is generally believe to be stable
and safe. That being said, there is still the chance there is an
undiscovered and/or unfixed bug that may potentially corrupt your
file, especially within the writing functions. By using getID3() you
agree that it's not my fault if any of your files are corrupted.
In fact, I'm not liable for anything :)
License
===========================================================================
GNU General Public License - see license.txt
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILIT
没有合适的资源?快使用搜索试试~ 我知道了~
基于PHP的wordpress 百度BAE版.zip
共1213个文件
php:504个
js:269个
png:152个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 37 浏览量
2023-07-23
00:34:24
上传
评论
收藏 6.25MB ZIP 举报
温馨提示
基于PHP的wordpress 百度BAE版.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于PHP的wordpress 百度BAE版.zip (1213个子文件)
app.conf 896B
wp-admin.css 157KB
wp-admin.min.css 125KB
style.css 54KB
wp-admin-rtl.css 54KB
editor.css 52KB
style.css 51KB
colors-classic.css 47KB
editor.min.css 45KB
colors-fresh.css 43KB
colors-classic.min.css 40KB
wp-admin-rtl.min.css 37KB
colors-fresh.min.css 37KB
style.css 35KB
media-views.css 28KB
media-views.min.css 23KB
style.css 23KB
genericons.css 22KB
mediaelementplayer.min.css 18KB
ui.css 15KB
ui.css 15KB
admin-bar.css 15KB
dark.css 13KB
rtl.css 13KB
admin-bar.min.css 13KB
rtl.css 11KB
buttons.css 9KB
ie.css 9KB
customize-controls.css 9KB
ui.css 9KB
ie.min.css 8KB
customize-controls.min.css 8KB
editor-style.css 7KB
buttons.min.css 7KB
editimage.css 7KB
window.css 7KB
dialog.css 6KB
dialog.css 6KB
dialog.css 6KB
editor-style.css 5KB
media.css 5KB
jquery-ui-dialog.css 5KB
dialog.css 5KB
editor-style.css 5KB
ie.css 5KB
media-views-rtl.css 5KB
rtl.css 5KB
ie.css 4KB
media.min.css 4KB
wp-pointer.css 4KB
rtl.css 4KB
jquery-ui-dialog.min.css 4KB
ie-rtl.css 4KB
thickbox.css 4KB
install.css 4KB
editor-style.css 4KB
content.css 4KB
media-views-rtl.min.css 4KB
wp-pointer.min.css 3KB
admin-bar-rtl.css 3KB
install.min.css 3KB
admin-bar-rtl.min.css 3KB
cropper.css 3KB
ie-rtl.min.css 3KB
content.css 2KB
content.css 2KB
color-picker.css 2KB
jquery.Jcrop.min.css 2KB
akismet.css 2KB
wp-auth-check.css 2KB
color-picker.min.css 2KB
ui_black.css 2KB
zh_CN-administration-screens.dev.css 2KB
wp-auth-check.min.css 1KB
customize-controls-rtl.css 1KB
media.css 1KB
media-rtl.css 1KB
customize-controls-rtl.min.css 1KB
content.css 1KB
media-rtl.min.css 1KB
ui_silver.css 855B
imgareaselect.css 790B
farbtastic.css 766B
zh_CN-administration-screens.css 619B
theme-options.css 615B
color-picker-rtl.css 414B
editor-style-rtl.css 413B
editor-style-rtl.css 380B
color-picker-rtl.min.css 351B
editor-style-rtl.css 317B
wp-mediaelement.css 271B
wp-fullscreen.css 221B
content.css 97B
genericons-regular-webfont.eot 10KB
loadingAnimation.gif 15KB
icons.gif 12KB
wpspin_light-2x.gif 9KB
wpspin-2x.gif 9KB
loading.gif 6KB
akismet.gif 3KB
共 1213 条
- 1
- 2
- 3
- 4
- 5
- 6
- 13
资源评论
助力毕业
- 粉丝: 2173
- 资源: 5122
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功