[mapserver-users] loadWeb(): Unknown identifier. Parsing error near (/ms4w/tmp/ms_tmp):(line 1)

le nho luu lenholuu at yahoo.com
Wed Nov 12 02:09:53 PST 2008


Hello everyone,

I'm new, and am currently having trouble figuring out what's wrong with my .map files.  I've checked all the lines in my .map files for missing parenthesees.  I'm getting this error when I try to click the button to load both test map files:

loadWeb(): Unknown identifier. Parsing error near (/ms4w/tmp/ms_tmp):(line 1)

Is there something wrong with my environment?  Are there differences in reading code in version 5.0.0.  I am using Windows XP, Mapserver 5.0.0, Apache, and PHP 5.2.4.
Any help is appreciated!
Here is my sample hello.map file:
# 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/apps/vidu/htdocs/hello.html"
	IMAGEPATH "/ms4w/tmp/ms_tmp/"
 	IMAGEURL "/ms_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
Here is my sample hello.html file:
<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/apps/vidu/htdocs/hello.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>




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081112/bc4ca960/attachment.htm>


More information about the MapServer-users mailing list