exif

$filename = 'somefile.jpg';
$t = exif_read_data($filename);
var_dump($t['DateTimeOriginal']);
var_dump($t['DateTimeDigitized']);