I'm trying to get the comment information from a JPG. My example below returns ?
Because it's grabbing the wrong comment.
[WINXP] => Array ( [Comments] => ????????????????????????????????? )
While I need it to grab specifically,
[IFD0] => Array ( [Exif_IFD_Pointer] => 2110 [Comments]
Code:
<?php
$exif_data = exif_read_data('28058990_1835355009821464_5937004451156759325_n.jpg', 0, true);
echo $exif_data===false ? "No header data found.<br />\n" : "Image contains headers<br />\n";
echo $exif_data['Comments'];
print_r($exif_data);
?>