Hi, are you using a mapserver version 5+? I guess the problem is then, that the cgi syntax to modify map parameters has changed from version 4. The culprit could be the form element "map_web_imagepath" in your helloworld.html. Try it without this element.
Read on about changing map files parameters via URL here: http://mapserver.org/cgi/controls.html#changing-map-file-parameters-via-a-form-or-a-url BTW: I thought the map parameter in helloworld.html needs the full path, i.e. on windows it should read "c:/ms4w/Apache/htdocs/helloworld.map" Cheers, Michael 2009/10/20 <[email protected]>: > Hi all, > > I went through the thread were similar post was there for windows.I tried > all possible ways to get it right,but still getting the same error.Need help > in this.Thanks in advance. > > My helloworld.map file is: > > #hello world example > MAP > NAME "hello_world" > SIZE 600 600 > IMAGECOLOR 249 245 186 > IMAGETYPE png > EXTENT -1.00 -1.00 1.00 1.00 #geographical extent > WEB > TEMPLATE "c:/ms4w/Apache/htdocs/helloworld.html" > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/tmp/" > END > LAYER > STATUS default > TYPE point > FEATURE > POINTS 0.0 0.0 END > TEXT "hello world" > END > CLASS > STYLE > COLOR 255 0 0 > END > LABEL > TYPE bitmap > END > END#END CLASS > END#END LAYER > END #END MAPFILE > > My helloworld.html file is: > > <html> > <head><title>Map Server 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/helloworld.map"> > <input type="hidden" name="map_web_imagepath" > value="/ms4w/tmp/ms_tmp/"> > </form> > <IMG SRC="[img]" width=400 height=300 border=0> > </body> > </html> > > And i call it using > > http://localhost/helloworld.html > > I have stored both in /ms4w/Apache/htdocs/ > > > > newuser. > > > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz [email protected] in medias res Gesellschaft für Informationstechnologie mbH +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ Schwimmbadstraße 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
