Read part of a file in PHP

Posted by Johan on Stack Overflow See other posts from Stack Overflow or by Johan
Published on 2010-03-19T14:40:51Z Indexed on 2010/03/19 14:51 UTC
Read the original article Hit count: 205

Filed under:
|
|

I would like to read the last 1 megabyte of a MP3 file and calculate SHA1 checksum for just that part of the file. The reason that I would want this is that when I'm looking for duplicate MP3's, the header info (song title, album etc.) can differ even though it's the exakt same audio file, so I figured I would be better of to checksum a part of the file at the end instead of the whole one. Is there an efficient way of doing this?

© Stack Overflow or respective owner

Related posts about php

Related posts about mp3