-
-
Save anonymous/4b3617465bb590db8edd4c412d725875 to your computer and use it in GitHub Desktop.
mime types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php -r ' | |
foreach ( glob("*.*") as $f ){ | |
if ( !preg_match("/(aac|aif|au|3gp|mkv|vob|rm)\\z/", $f ) ) {continue; }; echo $f . " --> " . mime_content_type($f) . "\n"; | |
} | |
' | |
AAC_8khz_Mono_5.aac --> audio/x-hx-aac-adts | |
M1F1-AlawC-AFsp.aif --> audio/x-aiff | |
anderson.au --> audio/basic | |
big_buck_bunny_144p_1mb.3gp --> video/3gpp | |
big_buck_bunny_720p_1mb.mkv --> video/x-matroska | |
sample.vob --> video/mpeg | |
video-anthem-rtr-october_2003-350kbps.rm --> application/vnd.rn-realmedia |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment