Buying Need function created to return track length of MP3 when passing in a URL to mp3 PHP]

Discussion in 'Programming' started by RickBurns, Sep 17, 2009.

  1. #1
    Hello,

    I'm working on a project and cannot figure out a way to find out the track length of my mp3s. The files play fine when accessed directly but I cannot figure out a way to return the tracklength.

    Request:

    Create a function that returns the track length of a mp3 when passing in a url of an mp3. The time format must me mm:ss. The code must be done in PHP.

    Please message me for urls for mp3. Need this job completed today.
    Cheers,
    Rick
     
    RickBurns, Sep 17, 2009 IP
  2. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    As Seller:
    100% - 0
    As Buyer:
    100% - 2
    #2
    I sent you a pm
     
    stephan2307, Sep 17, 2009 IP
  3. RickBurns

    RickBurns Peon

    Messages:
    185
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    0.0% - 0
    #3
    I have responded to all PMs. Job still open.
     
    RickBurns, Sep 17, 2009 IP
  4. david_web

    david_web Greenhorn

    Messages:
    54
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    david_web, Sep 17, 2009 IP
  5. RickBurns

    RickBurns Peon

    Messages:
    185
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    0.0% - 0
    #5
    Job closed. Admins please close. I have paid winner.
     
    RickBurns, Sep 17, 2009 IP
  6. omgitsfletch

    omgitsfletch Well-Known Member

    Messages:
    1,222
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    145
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    GetID3 is definitely the thing to use. You can cut out almost the entire library to reduce size and load time, but once you've got that library loaded, it should be only a few lines of code to get the track length from the metadata super array.
     
    omgitsfletch, Sep 17, 2009 IP