04-07-2008, 07:47 PM
|
#2 (permalink)
|
|
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
|
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
|
|
|
|