Here is the code I used from MP3 archiver
I found the code at
http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=249&lngWId=8
for anyone else who needs it.
I pulled out the function getTag and added my own mp3 information for a test (first 2 lines) and it pulled the information out perfectly!
My question is, how did it work? Is the pointer just moved ahead in 30 spaces for each read and accomplished this way?
<?
$filetitle="1_1_ws.mp3";
$filename= "1_1_ws.mp3";
$fp=fopen($filename,"r");
fseek($fp,filesize($filename)-128);
$checktag=fread($fp,3);
echo "<table width='100%' border='1' bgcolor='#c0c0c0'><tr><td>";
echo "<b><a href=\"$url$filetitle\">$filetitle</a></b><br></tr></td><tr><tr><tr bgcolor='#FFFFFF'><td>";
if ($checktag=="TAG") {
echo "\nSize: ".number_format(filesize($filename)/1000,2)." KBytes<br>";
echo "\nTitle: ".fread($fp,30)."<br>";
echo "\nAuthor: ".fread($fp,30)."<br>";
echo "\nAlbum: ".fread($fp,30)."<br>";
echo "\nCopyright: ".fread($fp,4)."<br>";
echo "\nComments: ".fread($fp,30)."<br>";
echo "</td></tr></table><br>";
}else{
echo "Size: ".filesize($filename)." Bytes<br>";
echo "<font color=\"red\"><b>No Tag</b></font><br>";
echo "</td></tr></table><br>";
fclose($filename);}
?>
keywords : mp3 meta information extract archiver file extractor binary audio