<?php
echo "test1.jpg:<br />
";
$exif = exif_read_data('tests/test1.jpg', 'IFD0');
echo $exif===false ? "No header data found.<br />
" : "Image contains headers<br />
";
$exif = exif_read_data('tests/test2.jpg', 0, true);
echo "test2.jpg:<br />
";
foreach ($exif as $key => $section) {
foreach ($section as $name => $val) {
echo "$key.$name: $val<br />
";
}
}
?>