<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=754312503-13102006><FONT face=Arial 
color=#0000ff size=2>Hi Xiaopeng,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=754312503-13102006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=754312503-13102006><FONT face=Arial 
color=#0000ff size=2>There is a file from "Catalist Creative" on their website, 
which does that:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=754312503-13102006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=754312503-13102006><FONT face=Arial 
color=#0000ff size=2><A 
href="http://www.catalistcreative.com/tools/zipfile.php.txt">http://www.catalistcreative.com/tools/zipfile.php.txt</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=754312503-13102006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=754312503-13102006><FONT face=Arial 
color=#0000ff size=2>I have used it a fair bit for this purpose. You basically 
have to modify it to point to the right files. If you use it, please make the 
following change, otherwise you will run into problems if you try to open the 
zip-file straight from Internet Explorer:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=754312503-13102006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=754312503-13102006><FONT face=Arial 
color=#0000ff size=2>Before the lines that say "Header ("Content ........", put 
another line that says:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=754312503-13102006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=754312503-13102006><FONT face=Arial 
color=#0000ff size=2>Header("Cache-Control: must-revalidate, post-check=0, 
pre-check=0");</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=754312503-13102006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=754312503-13102006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=754312503-13102006><FONT face=Arial 
color=#0000ff size=2>regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=754312503-13102006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=754312503-13102006><FONT face=Arial 
color=#0000ff size=2>Jacob</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=754312503-13102006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=754312503-13102006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List 
  [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>Xiaopeng 
  Xiong<BR><B>Sent:</B> 13 October 2006 09:19<BR><B>To:</B> 
  MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> [UMN_MAPSERVER-USERS] Enable 
  zip file downloading from query results<BR></FONT><BR></DIV>
  <DIV></DIV><FONT face=Arial size=2>
  <DIV><FONT size=2>Hello List,</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>I am very new to this field. </FONT><FONT size=2>I apologize 
  if this question is not related&nbsp;but I do appreciate any 
  suggestions.</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>I have one index that can be queried using mapserver. The 
  query results are like follows:</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>Record&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; 
  &nbsp;UL_X&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp; FileLink</FONT></DIV>
  <DIV>1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  456000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A 
  href="http://myweb.com/photo/15.tif">http://myweb.com/photo/15.tif</A></DIV>
  <DIV>2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  460000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A 
  href="http://myweb.com/photo/38.tif">http://myweb.com/photo/38.tif</A></DIV>
  <DIV>3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  464000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A 
  href="http://myweb.com/photo/41.tif">http://myweb.com/photo/41.tif</A></DIV></FONT>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial>Now what I want to realize is to provide an additional 
  "Download_All"&nbsp;button in the query result page.</FONT></DIV>
  <DIV><FONT face=Arial>Then when the user clicks the&nbsp;"Download_All" 
  button,&nbsp;all the files&nbsp;in "FileLink" will be compressed online 
  </FONT></DIV>
  <DIV><FONT face=Arial>into one (e.g., .zip) file and downloaded.</FONT></DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial>How can this be realized? I'll apprecate any help 
  or&nbsp;some reference to read.</FONT></DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Thank you.</FONT></DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial>Best,</FONT></DIV>
  <DIV><FONT face=Arial size=2>Xiaopeng</FONT></DIV></BLOCKQUOTE></BODY></HTML>