The EXIF in your Photos are corrupt.
I have tested a other original Photo and the EXIF works.
one thing, the exposure time function is not correct:
search in your modified code:
elseif ($key == "ExposureTime") {
$ExposureTime = explode("/", $exif_info);
if ( $ExposureTime[0] == 1 && $ExposureTime[1] == 1 ){
$exif_array[$exif_match[$key]] = $ExposureTime[1]." sec(s)";
}
elseif ( $ExposureTime[0] == 1 ) {
$exif_array[$exif_match[$key]] = "1/".($ExposureTime[1] * $ExposureTime[0])." sec(s)";
}
elseif(($ExposureTime[0] > 1)){
$exif_array[$exif_match[$key]] = "1/".round($ExposureTime[1]/$ExposureTime[0])." sec(s)";
}
elseif ( $ExposureTime[1] > 1 ) {
$exif_array[$exif_match[$key]] = ($ExposureTime[0]/$ExposureTime[1])." sec(s)";
}
elseif( $ExposureTime[1] == 1 ) {
$exif_array[$exif_match[$key]] = ($ExposureTime[0] * $ExposureTime[1])." sec(s)";
}
}
and replace:
elseif ($key == "ExposureTime") {
$ExposureTime = explode("/", $exif_info);
if ((float)$ExposureTime[1] == 0) {
$exif_array[$exif_match[$key]] = "0 sec(s)";
}
elseif (($ExposureTime[0]/$ExposureTime[1]) >= 0.3) {
$exif_array[$exif_match[$key]] = round(($ExposureTime[0]/$ExposureTime[1]),1)." sec(s)";
}
else {
$exif_array[$exif_match[$key]] = "1/".round((1/($ExposureTime[0]/$ExposureTime[1])),0)." sec(s)";
}
}
mfg Andi