Re: [PHP] How to get mime type from file name

2004-08-15 Thread raditha dissanayake
C.F. Scheidecker Antunes wrote: Hello, Is there any function where I can pass a file name like "file.png" and get return the string of its type 'image/png' ? Basically it is a funcion that takes a file name and returns a string of its mime type. I have used mime_mail to send attachments but the

[PHP] How to get mime type from file name

2004-08-15 Thread C.F. Scheidecker Antunes
Hello, Is there any function where I can pass a file name like "file.png" and get return the string of its type 'image/png' ? Basically it is a funcion that takes a file name and returns a string of its mime type. I have used mime_mail to send attachments but the I need when I am attaching the