0

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.

Josiah
  • 259
  • 1
  • 5
  • 10

1 Answers1

1

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

Boohbah
  • 134
  • 5
  • Why it is deprecated in favor of an inferior method I have no idea, thanks for the answer though. – Josiah Aug 12 '09 at 07:40