国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home PHP Libraries Other libraries Get the mime typePHP class library of the file
Get the mime typePHP class library of the file
<?php
class MimeTypes {
  public static $mime_types = array (
    'apk' => 'application/vnd.android.package-archive',
    '3gp' => 'video/3gpp',
    'ai' => 'application/postscript',
    'aif' => 'audio/x-aiff',
    'aifc' => 'audio/x-aiff',
    'aiff' => 'audio/x-aiff',
    'asc' => 'text/plain',
    'atom' => 'application/atom+xml',
    'au' => 'audio/basic',
    'avi' => 'video/x-msvideo',
    'bcpio' => 'application/x-bcpio',
    'bin' => 'application/octet-stream',
    'bmp' => 'image/bmp',
    'cdf' => 'application/x-netcdf',
    'cgm' => 'image/cgm',
    'class' => 'application/octet-stream',
    'cpio' => 'application/x-cpio',
    'cpt' => 'application/mac-compactpro',
    'csh' => 'application/x-csh',
    'css' => 'text/css',

This class library can obtain the mime type of the file. Friends who need it can download and use


Disclaimer

All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn

Related Article

Get the main file name of the calling library function Get the main file name of the calling library function

22 Aug 2025

This article describes how to get the main file name that calls the function in a Python library function. Get the path of the running script through sys.argv[0], and extract the file name using ntpath.basename to dynamically obtain the caller file name, thereby avoiding relying on source code browsing.

Get the main file name of the library function caller Get the main file name of the library function caller

23 Aug 2025

This article introduces a method to obtain the caller's main file name in Python library functions. Get the path of the currently running script through sys.argv[0] and extract the file name using ntpath.basename, so as to achieve the effect of returning the name of each script when calling the same library function in different scripts. This method is concise and effective, avoiding the complex source code search process.

How to solve the mapping problem of MIME type and file extension in PHP? The fileeye/mimemap library is here to help you! How to solve the mapping problem of MIME type and file extension in PHP? The fileeye/mimemap library is here to help you!

17 Apr 2025

I'm having a tricky problem when developing a PHP project that handles file uploads: How to map the MIME type of a file with its extension exactly? This problem not only affects the identification of files, but also leads to confusion in data processing. After trying multiple methods, I found the fileeye/mimemap library, which not only solved my problem, but also greatly improved the processing efficiency.

How Do I Link Static Libraries That Depend on Other Static Libraries? How Do I Link Static Libraries That Depend on Other Static Libraries?

13 Dec 2024

Linking Static Libraries to Other Static Libraries: A Comprehensive ApproachStatic libraries provide a convenient mechanism to package reusable...

How to Silence TensorFlow\'s Debugging Output? How to Silence TensorFlow\'s Debugging Output?

28 Oct 2024

Suppression of Tensorflow Debugging OutputTensorflow prints extensive information about loaded libraries, found devices, and other debugging data...

How Does jQuery Simplify DOM Manipulation for Web Developers? How Does jQuery Simplify DOM Manipulation for Web Developers?

03 Jan 2025

Overflow: Hidden and Expansion of HeightjQuery distinguishes itself from other JavaScript libraries through its cross-platform compatibility and...

See all articles