> The closest I have found on my google is the
> "application/msexcel" type, but this spawns Excel when
> viewing the file, and I do not want this behaviour.
Not sure what is happening with the list this morning, but it is eerily
quiet!
Anyway, a little bit of tinkering and I found that the ans
you could use the command "file -bin your_filename" and capture the output using popen
or exec.
i have found this to work well..
seee below
function mimetype($file)
{
// execute command
$fp = popen("file -bin $file","r");
// determine mimetype to output
if(!$fp)
{
// defaul
Hello,
On 10/03/2002 07:41 PM, Php List wrote:
> Hi,
> Is it possible to get a mime type of a file?
> I need to be able to attach files, but I won't always know the mime type of what is
>being attached.
> I could look at the extension of the file for a general Idea, but I wouldn't know if
>a .
If I remember correctly, there are various articles about file upload in
sites such as www.phpbuilder.com,
www.codewalkers.com and such. Hope that helps you get started :)
-Joni-
--
// Joni Järvinen
// [EMAIL PROTECTED]
// http://www.reactorbox.org/~wandu
"Wm" <[EMAIL PROTECTED]> wrote in messag
4 matches
Mail list logo