well noone replied and i figured it out... if anyone was curious here was my solution: [code] if ($handle = opendir('/home/dtech/public_html/whereisit/maps/')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { //echo $file; $image = exif_read_data("maps/$file",0,true); $images = array(); $images[$file]["lat"][0] = str_replace("/1","",$image['GPS']['GPSLatitude'][0]); $images[$file]["lat"][1] = str_replace("/1","",$image['GPS']['GPSLatitude'][1]); $images[$file]["lat"][2] = str_replace("/1","",$image['GPS']['GPSLatitude'][2]); $images[$file]["log"][0] = str_replace("/1","",$image['GPS']['GPSLongitude'][0]); $images[$file]["log"][1] = str_replace("/1","",$image['GPS']['GPSLongitude'][1]); $images[$file]["log"][2] = str_replace("/1","",$image['GPS']['GPSLongitude'][2]); print_r($images); } } } [/code]