Jump to content

Get playtime, file size, bitrate (id3 tags) of remote url mp3 file


delirious1230

Recommended Posts

Hey everyone,

 

i am trying to get id3 tags (informations that are stored in mp3 file: playtime,bitrate,size,album,year etc) of mp3 files

from remote servers.

Code is originaly by getid3.com and its currently made for local files.

 

Here you can see code:

 

<?php

require_once('getid3/getid3.php'); 

$getID3 = new getID3; 
$filename = "http://website.com/subfolder/eminem_-_toy_soldier.mp3"; 

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

echo @$ThisFileInfo['playtime_string'];

?>

 

In this code with remote url of the mp3 file i get no details, but if i insert in that line

 

$filename = "/subfolder/eminem_-_toy_soldier.mp3"; << that file is hosted on same server where the code is, than it works

 

I have attached archive of files that are needed for running the script.

 

Thanks for all the help you can provide.... if you need more explanation ask and i'll try to give more details.

 

[attachment deleted by admin]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.