> Which would be weird, because it's supposed to return if any of the downloaded files is empty, just before it calls mergeOSM: > DownloadFile($URL, $partialFile, 0); > > if (-s $partialFile == 0) > { are you sure an empty file is zero length? I'm seeing leftover .osm files in my tah dir containing: <osm version='0.4'></osm> -- Robert Hart