<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2715.400" name=GENERATOR></HEAD>
<BODY style="MARGIN-TOP: 2px; FONT: 8pt Tahoma; MARGIN-LEFT: 2px">
<DIV><FONT size=1>Thanks pk, but unfortunately, I'm not to hip on the perl 
yet.&nbsp; Is there a variable you can pass in the querystring that identifies 
the filename?</FONT></DIV>
<DIV><FONT size=1></FONT>&nbsp;</DIV>
<DIV><FONT size=1>Thanks,</FONT></DIV>
<DIV><FONT size=1>Jason</FONT></DIV>
<DIV><FONT size=1></FONT>&nbsp;</DIV>
<DIV><FONT size=1></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Jason Spangler<BR>Cass County Information Systems<BR>616-445-4489<BR><A 
href="mailto:jasons@cassco.org">jasons@cassco.org</A></DIV>
<DIV>&nbsp;</DIV>
<DIV><BR><BR>&gt;&gt;&gt; Puneet Kishor &lt;pkishor@geoanalytics.com&gt; 
05/09/02 05:57PM &gt;&gt;&gt;<BR></DIV><FONT face=Tahoma size=1>
<DIV><SPAN class=362505121-09052002><FONT size=1>very easy to do with 
Perl/Mapscript. It might be hardcoded into the PHP/Mapscript 
methods.</FONT></SPAN></DIV>
<DIV><SPAN class=362505121-09052002><FONT size=1></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=362505121-09052002><FONT size=1>here's how in 
Perl</FONT></SPAN></DIV>
<DIV><SPAN class=362505121-09052002><FONT size=1></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=362505121-09052002><FONT size=1>my $appurl = 
"url/to/my/app/";</FONT></SPAN></DIV>
<DIV><SPAN class=362505121-09052002><FONT size=1>my $tmpdir = 
"path/to/my/tmp/";</FONT></SPAN></DIV>
<DIV><SPAN class=362505121-09052002><FONT size=1>my $mapimgname = $whateveriwant 
. time() . ".png";&nbsp; # time() makes it unique, .png adds the 
extension</FONT></SPAN></DIV>
<DIV><SPAN class=362505121-09052002><FONT size=1>my $imgObj = 
$mapObj-&gt;draw();<BR>mapscript::msSaveImage($imgObj, $tmpdir . $mapimgname, 2, 
$mapObj-&gt;{interlace}, $mapObj-&gt;{transparent}, 95); </FONT></SPAN></DIV>
<DIV><SPAN class=362505121-09052002><SPAN class=362505121-09052002><FONT 
size=1>my $mapurl = $appurl . "tmp/" . $mapimgname;</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=362505121-09052002><SPAN class=362505121-09052002><FONT 
size=1></FONT></SPAN></SPAN>&nbsp;</DIV>
<DIV><SPAN class=362505121-09052002><SPAN class=362505121-09052002><FONT 
size=1>pk/</FONT></SPAN></SPAN></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT size=2>-----Original 
  Message-----<BR><B>From:</B> Jason Spangler 
  [mailto:JasonS@cassco.org]<BR><B>Sent:</B> Thursday, May 09, 2002 3:56 
  PM<BR><B>To:</B> mapserver-users@lists.gis.umn.edu<BR><B>Subject:</B> 
  [mapserver-users] Filename<BR><BR></FONT></DIV>
  <DIV><FONT size=1>I'm sure I'm overlooking something, but is it possible to 
  change the name of the tmp map image file name?</FONT></DIV>
  <DIV><FONT size=1></FONT>&nbsp;</DIV>
  <DIV><FONT size=1>I would like to add different variables to the beginning of 
  the filename at different times of the day.</FONT></DIV>
  <DIV><FONT size=1></FONT>&nbsp;</DIV>
  <DIV><FONT size=1>Any help would be appreciated.</FONT></DIV>
  <DIV><FONT size=1></FONT>&nbsp;</DIV>
  <DIV><FONT size=1>Thanks,</FONT></DIV>
  <DIV><FONT size=1>Jason</FONT></DIV>
  <DIV><FONT size=1></FONT>&nbsp;</DIV>
  <DIV><FONT size=1></FONT>&nbsp;</DIV>
  <DIV><FONT size=1></FONT>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Jason Spangler<BR>Cass County Information Systems<BR>616-445-4489<BR><A 
  href="mailto:jasons@cassco.org">jasons@cassco.org</A></DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV></BLOCKQUOTE></FONT></BODY></HTML>