I have a ubuntu 9.04 desktop that i'm using for my development machine with apache2 installed.

What are the steps that I need to go through to ensure that the mime types for files are determined correctly?

Currently all files are resolving to a mime-type of 'text/plain' because php is not configured correctly for mime_content_type() to work.

link|improve this question

75% accept rate
feedback

1 Answer

up vote 1 down vote accepted

Looking at php.net it appears mime_content_type() is deprecated and it is now recommended to use Fileinfo. Check this thread for installation instructions on Ubuntu. http://ubuntuforums.org/showthread.php?t=722373

link|improve this answer
Why it is deprecated in favor of an inferior method I have no idea, thanks for the answer though. – Josiah Aug 12 '09 at 7:40
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.