View Single Post
Old 04-07-2008, 06:47 PM   #2 (permalink)
delayedinsanity
The Prestige
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 852
Thanks: 31
delayedinsanity is on a distinguished road
Default

I think you're looking for filesize(), unless you mean the play time of it? Which you probably do... so, I'd use getID3() in this case, and all you should need to do is;

PHP Code:
require_once('/path/to/getid3.php');

$getID3 = new getID3;
$filename "/path/to/mp3";

$ThisFileInfo $getID3->analyze($filename);
getid3_lib::CopyTagsToComments($ThisFileInfo);

echo @
$ThisFileInfo['playtime_string']; 
Just from taking a quick look at getID3(). I've never used it before, but it does have a directory full of demonstration pages to show you how to access various functions.
-m
delayedinsanity is offline  
Reply With Quote