[PHP] RE: MIME Types [fixed]

2005-03-16 Thread Mikey
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 answer

[PHP] Re: Mime Types

2002-10-04 Thread christian haines
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) { // default

[PHP] Re: Mime Types

2002-10-03 Thread Manuel Lemos
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 .jpg

[PHP] Re: Mime types?

2002-08-21 Thread Joni Järvinen
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 message