What is a wrapper script?

Steven Monai stevem at SPATIALMAPPING.COM
Fri Jan 27 11:23:41 EST 2006


Since you're running MS4W, you could try a wrapper script that I wrote in
PHP. It works well for me on Windows 2000 & MS4W. Unfortunately, I think
it's too large (currently 740 lines) to quote here. If you are interested, I
can email it to you off-list.

Regards,
-SM
--

-----Original Message-----
From: Liang Zou [mailto:lltous at msn.com] 
Sent: Thursday, January 26, 2006 7:26 PM
To: stevem at SPATIALMAPPING.COM
Subject: Re: What is a wrapper script?


Thank you for your reply.

I'm using Windows XP. Thus I can not use the shell script. Do you have an
idea which scripting language I should use. Some people tell me that I need
to use perl, but the MS4W does not have perl support. Is that right? Thanks
again.

Liang

>From: Steven Monai <stevem at SPATIALMAPPING.COM>
>To: MAPSERVER-USERS at LISTS.UMN.EDU,    Liang Zou <lltous at MSN.COM>
>Subject: Re: What is a wrapper script?
>Date: Thu, 26 Jan 2006 11:02:40 -0600
>
>Liang:
>
>I haved used the following shell script on a Linux box (although it 
>should be generic enough to run on any OS with /bin/sh):
>
>#!/bin/sh
>MAPSERV="/path/to/my/mapserv"
>MAPFILE="/path/to/my/mapfile.map"
>if [ "${REQUEST_METHOD}" = "GET" ]; then
>   if [ -z "${QUERY_STRING}" ]; then
>     QUERY_STRING="map=${MAPFILE}"
>   else
>     QUERY_STRING="map=${MAPFILE}&${QUERY_STRING}"
>   fi
>   exec ${MAPSERV}
>else
>   echo "Sorry, I only understand GET requests."
>fi
>exit 1
># End of Script
>
>You should set the MAPSERV and MAPFILE variables as appropriate for 
>your configuration. Then put the script in your web server's cgi-bin 
>directory, and make it executable.
>
>I haven't ever needed POST capability, so I can't tell you offhand how 
>to modify the script to handle POST requests. Maybe someone else can 
>chime in with the solution.
>
>Hope this helps,
>-SM
>--
>
>
>
>On Thu, 26 Jan 2006 02:13:36 +0800, =?gb2312?B?194gwcE=?= 
><lltous at MSN.COM>
>wrote:
>
> >hi everyone,
> >
> >I don't know how to create a simple wrapper script to hide the map= 
> >parameter. Would you please give me some clues about the wrapper script?
> >How can I create one? Is there a tool to create it?
> >
> >Thank you very much.
> >
> >Liang
> >
> >_________________________________________________________________
> >Ãâ·ÑÏÂÔØ MSN Explorer:   http://explorer.msn.com/lccn

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



More information about the mapserver-users mailing list