조회 : 540
Returns the MIME content type for a file as determined by using information from the magic.mime file. Content types are returned in MIME format, like text/plain or application/octet-stream.
mime_content_type() 함수가 없을 경우
<?php
if (!function_exists('mime_content_type')) {
function mime_content_type($f) {
$f = escapeshellarg($f);
return trim( `file -bi $f` );
}
}
$f = "./nbuilder/login.gif";
$gg = mime_content_type($f);
echo"$gg";
?>
| 제목 |
|---|
| [기본형] HTML (with 부트스트랩5.3 , jquery 3.7, vue.js) |
| 유용한 리눅스(LINUX) 명령어 |
| [공지] 기술 게시판 |
일 |
월 |
화 |
수 |
목 |
금 |
토 |
|---|---|---|---|---|---|---|
|
12.28
|
12.29
|
12.30
|
12.31
|
1.1
|
1.2
|
1.3
|
|
1.4
|
1.5
|
1.6
|
1.7
|
1.8
|
1.9
|
1.10
|
|
1.11
|
1.12
|
1.13
|
1.14
|
1.15
|
1.16
|
1.17
|
|
1.18
|
1.19
|
1.20
|
1.21
|
1.22
|
1.23
|
1.24
|
|
1.25
|
1.26
|
1.27
|
1.28
|
1.29
|
1.30
|
1.31
|