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]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.