1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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!
    SEMrush
     
    phantom, Sep 24, 2010 IP
    SEMrush
  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,508
    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,578
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
  5. phantom

    phantom Well-Known Member

    Messages:
    1,508
    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,508
    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