Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Opinions on determining mime type

by ncw (Friar)
on Sep 21, 2000 at 01:46 UTC ( #33407=note: print w/replies, xml ) Need Help??


in reply to Opinions on determining mime type

If your server is unix then you could try the file command. I've found this very reliable.

From the man page :-

NAME
       file - determine file type

SYNOPSIS
       file  [  -bcnsvzL ] [ -f namefile ] [ -m magicfiles ] file
       ...

DESCRIPTION
       This manual page documents version 3.27 of the  file  com<AD>
       mand.   File tests each argument in an attempt to classify
       it.  There are three sets  of  tests,  performed  in  this
       order:  filesystem tests, magic number tests, and language
       tests.  The first test that succeeds causes the file  type
       to be printed.
Maybe File::MMagic is based on the same technology.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://33407]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2022-01-28 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (74 votes). Check out past polls.

    Notices?