Вот сам код
<?php // This function is used to determine the camera details for a specific image. It returns an array with the parameters. function cameraUsed($imagePath) { // Check if the variable is set and if the file itself exists before continuing // There are 2 arrays which contains the information we are after, so it's easier to state them both //error control $notFound = "Unavailable"; // Make $camMake = $exif_ifd0['Make']; } else { $camMake = $notFound; } // Model $camModel = $exif_ifd0['Model']; } else { $camModel = $notFound; } // Exposure $camExposure = $exif_ifd0['ExposureTime']; } else { $camExposure = $notFound; } // Aperture $camAperture = $exif_ifd0['COMPUTED']['ApertureFNumber']; } else { $camAperture = $notFound; } // Date $camDate = $exif_ifd0['DateTime']; } else { $camDate = $notFound; } // ISO $camIso = $exif_exif['ISOSpeedRatings']; } else { $camIso = $notFound; } $return['make'] = $camMake; $return['model'] = $camModel; $return['exposure'] = $camExposure; $return['aperture'] = $camAperture; $return['date'] = $camDate; $return['iso'] = $camIso; return $return; } else { return false; } } ?> <?php $camera = cameraUsed("DSC_0006.jpg"); echo "Camera Used: " . $camera['make'] . " " . $camera['model'] . "<br />"; echo "Exposure Time: " . $camera['exposure'] . "<br />"; echo "Aperture: " . $camera['aperture'] . "<br />"; echo "ISO: " . $camera['iso'] . "<br />"; echo "Date Taken: " . $camera['date'] . "<br />"; ?>
<?php echo html_image_src($photo['image'], 'original', true); ?>