$sourceImage = 'images/baby.jpg'; 
$exif_data = exif_read_data( $sourceImage );
echo '
';
print_r($exif_data); 
echo '

‘;

显示


Array
(
    [FileName] => baby.jpg
    [FileDateTime] => 1228665226
    [FileSize] => 20161
    [FileType] => 2
    [MimeType] => image/jpeg
    [SectionsFound] => APP12
    [COMPUTED] => Array
        (
            [html] => width=“204” height=“225”
            [Height] => 225
            [Width] => 204
            [IsColor] => 1
        )

    [Company] => Ducky
    [Info] => 
)

转载请注明:韦旭红的点点滴滴 » PHP小技巧--获取文件的信息(exif_read_date ()