PHP mime_content_type() adapter.