delirious1230 Posted January 10, 2011 Share Posted January 10, 2011 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] Quote Link to comment https://forums.phpfreaks.com/topic/224010-get-playtime-file-size-bitrate-id3-tags-of-remote-url-mp3-file/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.