Multimedia File dates...

My album is running on Yahoo! php 4.3 When using multimedia files the and show exif/date is checked the date under the thumb is always the current day. I wrote a quick fix to this and inserted in the getexif function, this is just a suggestion for those who find this useful [code1]function getexif($image,$format,$info) { $date=''; $comment=''; //vvvvvvvvvvvvvv below is dominick's fix for showing multimedia date modified information. $mm_file = get_multimedia($image,false); if ($mm_file!=''){ $date=@filemtime($mm_file); if ($format!='unix') { $date=date($format,$date); } if ($info=='date') { return($date); } } //^^^^^^^^^^^^^^ dominick's fix if (file_exists($image) && extension_loaded('exif')) { $extension=strtolower(substr($image,strrpos($image,'.')+1,strlen($image))); if ($extension=='jpg' || $extension=='jpeg') { $exif=@exif_read_data($image,0,true); foreach($exif as $key=>$section) { foreach($section as $name=>$val) { if ($name=='DateTimeOriginal') {$date=$val;} if ($name=='DateTime') {$date=$val;} if ($name=='UserComment') {$comment.=$val . ' ';} } } } if ($date!='' && $date!="00000000 000000"«») { $date=preg_replace("/(\d{4})«»(\d{2})«»(\d{2}) (\d{2})«»(\d{2})«»(\d{2})/",'\1-\2-\3 \4\5\6',$date); $date=strtotime($date); if ($date===-1) {$date=@filemtime($image);} } else { $date=@filemtime($image); } } else if (file_exists($image)) { $date=@filemtime($image); } if ($format!='unix') {$date=date($format,$date);} if ($info=='date') return($date); else return(trim($comment)); } [/code1]