mime_content_type - 파일의 MIME 내용 유형 감지
mime_content_type - 파일의 MIME 내용 유형 감지
설명 ¶
string mime_content_type ( string $filename )
magic.mime 파일의 정보를 사용하여 결정된 파일의 MIME 내용 유형을 반환 합니다.
매개 변수 ¶
filename
테스트 된 파일의 경로.
반환 값 ¶
text / plain 또는 application / octet-stream 과 같은 MIME 형식의 내용 유형을 반환합니다 .
예 ¶
Example # 1 mime_content_type () 예제
<?php
echo mime_content_type('php.gif') . "\n";
echo mime_content_type('test.php');
?>
위의 예는 다음과 같이 출력됩니다.
image/gif
text/plain
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기