getID3() by James Heinrich (<[email protected]>)
===
**Available at <http://getid3.sourceforge.net> or <https://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:**
* [v3](https://gnu.org/licenses/gpl.html)
* [v2](https://gnu.org/licenses/old-licenses/gpl-2.0.html)
* [v1](https://gnu.org/licenses/old-licenses/gpl-1.0.html)
**GNU LGPL:**
* [v3](https://gnu.org/licenses/lgpl.html)
**Mozilla MPL:**
* [v2](https://www.mozilla.org/MPL/2.0/)
**getID3 Commercial License:**
* [gCL](https://www.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 <https://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, Opus)
* 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
* Tom's lossless Audio Kompressor (TAK)
* 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:
``` php
<?php
// 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($localtempfilename);
// 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
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA.
FAQ:
---
**Q:** Can I use getID3() in my program? Do I need a commercial license?
**A:** You're generally free to use getID3 however you see fit. The only
case in which you would require a commercial license is if you're
selling your closed-source program that integrates getID3. If you
sell your program including a copy of getID3, that's fine as long
as you include a copy of the sourcecode when you sell it. Or you
can distribute your code without getID3 and say "download it from
getid3.sourceforge.net"
Why is it called "getID3()" if it does so much more than just that?
===
v0.1 did in fact just do that. I don't have a copy of code that old, but I
could essentially write it today with a one-line function:
``` php
function getID3($filename) { return unpack('a3TAG/a30title/a30artist/a30album/a4year/a28comment/c1track/c1genreid', substr(file_get_contents($filename), -128)); }
```
Future Plans
===
<https://www.getid3.org/phpBB3/vie
没有合适的资源?快使用搜索试试~ 我知道了~
赚钱大师小程序源码v2.0.7
共2000个文件
jpg:656个
php:540个
js:446个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 2 下载量 151 浏览量
2022-02-21
10:27:55
上传
评论 1
收藏 64.39MB ZIP 举报
温馨提示
赚钱大师是一款专业的小程序流量主变现软件,内置丰富的流量主广告展示位,并以看视频赚金币、邀请朋友看视频赚金币等粗暴又简单的模式做为主体功能,同时引入外卖返佣、快乐养牛等丰富的插件拓展,让创业者可以轻松通过本软件快速赚钱。
资源详情
资源评论
资源推荐
收起资源包目录
赚钱大师小程序源码v2.0.7 (2000个子文件)
merge.bat 24B
CHANGELOG 1KB
index.b0ff4c21.css 81KB
layui.css 71KB
layui.css 68KB
ueditor.css 48KB
ueditor.min.css 34KB
main.css 29KB
video-js.css 22KB
admin.css 21KB
image.css 20KB
video.css 16KB
attachment.css 16KB
layim.css 15KB
layer.css 14KB
layer.css 14KB
main.min.css 14KB
fullcalendar.css 12KB
video-js.min.css 11KB
template.css 11KB
layui.mobile.css 10KB
layui.mobile.css 10KB
fancybox.css 9KB
layim.css 9KB
main.css 8KB
laydate.css 7KB
laydate.css 7KB
shCoreDefault.css 7KB
scrawl.css 4KB
main.min.css 3KB
codemirror.css 3KB
charts.css 3KB
getid3.css 3KB
background.css 3KB
login.css 2KB
main.css 2KB
dialogbase.css 2KB
main.css 2KB
emotion.css 2KB
inputTags.css 2KB
music.css 2KB
edittable.css 1KB
main.min.css 1KB
template.css 1KB
code.css 1KB
code.css 1KB
main.min.css 1004B
main.css 882B
webuploader.css 571B
main.min.css 416B
help.css 407B
tag.css 393B
iframe.css 44B
mask_177_6.dat 441B
mask_173_6.dat 429B
mask_177_7.dat 407B
frame_40.dat 406B
mask_173_7.dat 405B
frame_39.dat 404B
mask_165_6.dat 400B
mask_161_6.dat 399B
mask_169_6.dat 391B
mask_169_7.dat 383B
mask_161_7.dat 376B
frame_37.dat 376B
mask_165_7.dat 375B
frame_36.dat 370B
mask_149_6.dat 370B
mask_177_5.dat 369B
mask_153_6.dat 367B
mask_173_5.dat 362B
frame_38.dat 358B
mask_145_6.dat 357B
mask_141_6.dat 357B
mask_137_6.dat 355B
mask_149_7.dat 351B
mask_153_7.dat 351B
mask_145_7.dat 349B
frame_33.dat 343B
frame_35.dat 342B
mask_169_5.dat 336B
mask_165_5.dat 332B
mask_137_7.dat 331B
mask_157_6.dat 331B
frame_34.dat 331B
mask_141_7.dat 330B
frame_32.dat 329B
mask_161_5.dat 328B
frame_31.dat 328B
frame_30.dat 324B
frame_28.dat 318B
mask_157_7.dat 316B
mask_177_3.dat 312B
mask_129_6.dat 310B
mask_121_6.dat 309B
frame_29.dat 309B
mask_153_5.dat 307B
mask_173_3.dat 307B
mask_149_5.dat 306B
mask_125_6.dat 305B
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
智慧浩海
- 粉丝: 1w+
- 资源: 5145
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论2