Is there something like getimagesize for audio files?

Discussion in 'PHP' started by phantom, Sep 24, 2010.

  1. #1
    Is there something like getimagesize() for audio files that would help to determine the type of an audio file??


    thanks!
     
    phantom, Sep 24, 2010 IP
  2. systemick

    systemick Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The function getimagesize provides info about the dimensions of the image. What info do you need?
     
    systemick, Sep 25, 2010 IP
  3. phantom

    phantom Well-Known Member

    Messages:
    1,509
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    140
    #3
    I'm trying to verify if a file is an mp3.

    Right now I am checking the mimes that I know of against a list held in an array....just wondering if there was a better way to do it.
     
    phantom, Sep 25, 2010 IP
  4. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
  5. phantom

    phantom Well-Known Member

    Messages:
    1,509
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    140
    #5
    yes I saw that I was just hoping there was a better way than the array thing and the mime_content_type doesn't appear to be reliable either
     
    phantom, Sep 25, 2010 IP
  6. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #6
    Lookup getid3
     
    danx10, Sep 25, 2010 IP
    phantom likes this.
  7. phantom

    phantom Well-Known Member

    Messages:
    1,509
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    140
    #7
    I'll check it out thanks!

    EDIT
    Works like a Charm thanks!
     
    Last edited: Sep 25, 2010
    phantom, Sep 25, 2010 IP