[mapserver-users] Eror in CGI Script

Fawcett, David David.Fawcett at state.mn.us
Tue Aug 11 10:13:26 EDT 2009


Also, what do you see when you hit the URL:
http://localhost/cgi-bin/mapserv.exe?mode=map&map=/ms4w/apps/gmap/htdocs
/hello.map

(I am not sure what the base URL is, so you may need to modify it a
little bit.)

David.

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of
Julien-Samuel Lacroix
Sent: Tuesday, August 11, 2009 8:54 AM
To: Rishikant Lal
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Eror in CGI Script


Hi,

Can you tell us what is the error message you get? It would help a lot 
to know what's going on.

Best regards,
Julien

Rishikant Lal wrote:
> Dear Friends,
> I have my .Map file in C:\ms4w\apps\gmap\htdocs and it is called
> hello.map and my template file is saved in C:\ms4w\Apache\htdocs and
is 
> hello.html.
> Hello.map looks like
> # This is our "Hello World" mapfile
>  NAME "Hello_World"
>  SIZE 400 300
>  IMAGECOLOR 249 245 186
>  IMAGETYPE png
>  EXTENT -1.00 -1.00 1.00 1.00
>  WEB
>  TEMPLATE "/ms4w/Apache/htdocs/hello.html"
>  IMAGEPATH "/ms4w/apps/gmap/data"
>  IMAGEURL "/ms4w/tmp"
>  END
>  LAYER
>  STATUS default
>  TYPE point
>  FEATURE
>  POINTS 0.0 0.0 END
>  TEXT "Hello World"
>  END # end feature
>  CLASS
>  STYLE
>  COLOR 255 0 0
>  END
>  LABEL
>  TYPE bitmap
>  END
>  END
>  END
>  END
>  
> And hello.html looks like
> <html>
>  <head><title>MapServer Hello World</title></head>
>  <body>
>  <form method=POST action="../cgi-bin/mapserv.exe">
>  <input type="submit" value="Click Me">
>  <input type="hidden" name="map" 
> value="/ms4w/Apache/htdocs/hello.map">
>  <input type="hidden" name="map_web_imagepath"
> value="map=/ms4w/Apache/htdocs/hello.map&mode=map">
>  </form>
>  <IMG SRC="tmp/abc.png" width=400 height=300 border=0>
>  </body>
>  </html>
>  
> Ther is some error in this script and I am not able to figure it out.
> Kindly help me out.
> 
> 
> ----------------------------------------------------------------------
> --
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

-- 
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/ _______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list