code: def init_mimedb():
      
      global mimedb
      try:
          mimedb = mimetypes.MimeTypes(strict=False)
      except Exception as msg:
          log.error(LOG_CHECK, "could not initialize MIME database: %s" % msg)
          return
      # For Opera bookmark files (opera6.adr)
      add_mimetype(mimedb, 'text/plain', '.adr')
      # To recognize PHP files as HTML with content check.
      add_mimetype(mimedb, 'application/x-httpd-php', '.php')
      # To recognize WML files
      add_mimetype(mimedb, 'text/vnd.wap.wml', '.wml')
docs: Initialize the local MIME database.