update : 2015.11.03
php.shukuma.com검색:
|
exif_imagetype(PHP 4 >= 4.3.0, PHP 5, PHP 7) exif_imagetype — Determine the type of an image 설명
int exif_imagetype
( string
$filename
)exif_imagetype() reads the first bytes of an image and checks its signature. exif_imagetype() can be used to avoid calls to other exif functions with unsupported file types or in conjunction with $_SERVER['HTTP_ACCEPT'] to check whether or not the viewer is able to see a specific image in the browser. 인수
반환값
When a correct signature is found, the appropriate constant value will be
returned otherwise the return value is
변경점
예약 상수The following constants are defined, and represent possible exif_imagetype() return values:
예제
Example #1 exif_imagetype() example
<?php 참고
|