조회 : 501
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) 명령어 |
| [공지] 기술 게시판 |
일 |
월 |
화 |
수 |
목 |
금 |
토 |
|---|---|---|---|---|---|---|
|
10.26
|
10.27
|
10.28
|
10.29
|
10.30
|
10.31
|
11.1
|
|
11.2
|
11.3
|
11.4
|
11.5
|
11.6
|
11.7
|
11.8
|
|
11.9
|
11.10
|
11.11
|
11.12
|
11.13
|
11.14
|
11.15
|
|
11.16
|
11.17
|
11.18
|
11.19
|
11.20
|
11.21
|
11.22
|
|
11.23
|
11.24
|
11.25
|
11.26
|
11.27
|
11.28
|
11.29
|
|
11.30
|
12.1
|
12.2
|
12.3
|
12.4
|
12.5
|
12.6
|