exif_read_data()
페이지 정보
![profile_image](http://beautipia.co.kr/img/no_profile.gif)
본문
array exif_read_data ( string $filename [, string $sections= NULL [, bool $arrays= false [, bool $thumbnail= false ]]] )
----------------------------------------------------------------]
Example #1 exif_read_data() example
<?php
echo "test1.jpg:<br />\n";
$exif = exif_read_data('tests/test1.jpg', 'IFD0');
echo $exif===false ? "No header data found.<br />\n" : "Image contains headers<br />\n";
$exif = exif_read_data('tests/test2.jpg', 0, true);
echo "test2.jpg:<br />\n";
foreach ($exif as $key => $section) {
foreach ($section as $name => $val) {
echo "$key.$name: $val<br />\n";
}
}
?>
----------------------------------------------------------------]
<?php
$exif_data = exif_read_data ( $_FILES['photo']
$emake =$exif_data['Make'];
$emodel = $exif_data['Model'];
$eexposuretime = $exif_data['ExposureTime'];
$efnumber = $exif_data['FNumber'];
$eiso = $exif_data['ISOSpeedRatings'];
$edate = $exif_data['DateTime'];
?>
----------------------------------------------------------------]
----------------------------------------------------------------]
----------------------------------------------------------------]
----------------------------------------------------------------]
http://www.php.net/manual/kr/function.exif-read-data.php
----------------------------------------------------------------]
Example #1 exif_read_data() example
<?php
echo "test1.jpg:<br />\n";
$exif = exif_read_data('tests/test1.jpg', 'IFD0');
echo $exif===false ? "No header data found.<br />\n" : "Image contains headers<br />\n";
$exif = exif_read_data('tests/test2.jpg', 0, true);
echo "test2.jpg:<br />\n";
foreach ($exif as $key => $section) {
foreach ($section as $name => $val) {
echo "$key.$name: $val<br />\n";
}
}
?>
----------------------------------------------------------------]
<?php
$exif_data = exif_read_data ( $_FILES['photo']
$emake =$exif_data['Make'];
$emodel = $exif_data['Model'];
$eexposuretime = $exif_data['ExposureTime'];
$efnumber = $exif_data['FNumber'];
$eiso = $exif_data['ISOSpeedRatings'];
$edate = $exif_data['DateTime'];
?>
----------------------------------------------------------------]
----------------------------------------------------------------]
----------------------------------------------------------------]
----------------------------------------------------------------]
http://www.php.net/manual/kr/function.exif-read-data.php
- 이전글[IE8] 파일업로드 콘트롤 사용시 fakepath문제 21.02.09
- 다음글PHP 기본 설정 - php.ini 주요 사항 설정 21.02.09
댓글목록
등록된 댓글이 없습니다.