Hi, maybe this wil help you...i made this some time ago...
<?php
function ShowID3( $mp3, $path )
{
$file = $path . $mp3;
$value = fopen( $file, "r");
$content = fread( $value, filesize ($file) );
$tag = str_replace( "TAG","", strstr( $content, "TAG" ) );
$title = substr( $tag, 0, 30);
$band = substr( $tag, 30, 30 );
$album = substr( $tag, 60, 30 );
$year = substr( $tag, 90, 4 );
$comment = substr( $tag, 94, 30 );
//$genre = substr( $tag, 124, 1 );
echo,
"<b>Titel</b>: " . $title . "<br>" .
"<b>Band</b>: " . $band . "<br>" .
"<b>Album</b>: " . $album . "<br>" .
"<b>Jahr</b>: " . $year . "<br>" .
"<b>Kommentar</b>: " . $comment . "<br>";
fclose( $value );
}
ShowID3( "test.mp3", "" );
?>
Regards,
Ron
Am Mittwoch, 17. November 2004 01:58 schrieb Ryan King:
> Anyone out there have a way to read the header info out of an mp3 file?
> I'm able to parse out the id3 tags, but am having trouble finding a way
> to read the header info. The info I'm trying to get is the playtime and
> bitrate.
>
> thanks,
> ryan
--
pgp9hzPkvKAq5.pgp
Description: PGP signature

