Loading ...
Sorry, an error occurred while loading the content.

Re: File extension

Expand Messages
  • Prabhat Maurya
    Thanks for the reply I have one more problem since function finfo_file is only available for php-5.3 thats why we need some alternate function also for older
    Message 1 of 3 , Aug 16 10:58 PM
    • 0 Attachment
      Thanks for the reply

      I have one more problem since function "finfo_file" is only available for php-5.3 thats why we need some alternate function also for older version of PHP.


      --- In bang-phpug@yahoogroups.com, Sudheer Satyanarayana <sudheer.s@...> wrote:
      >
      > prabhat kumar wrote:
      > > Hi,
      > >
      > > In php how to find file type (like mp3, flv, assci etc).
      > > I already tried functuion mime_content_type() and $_FILES['tagname']['type'] but i m not able to differentiate video files.
      > >
      > > Any help?
      > >
      > >
      > >
      > > Your friend
      > >
      > > Prabhat Kumar
      > >
      > >
      > Hi Prabhat,
      >
      > The fileinfo extension is what you are looking for.
      >
      > You can read more about it at
      > http://in.php.net/manual/en/function.finfo-file.php
      >
      >
      >
      > --
      >
      > With warm regards,
      > Sudheer. S
      > Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.