le nho luu wrote:
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>
Yes there are difference with 5.0. In fact I recommend that you always search the archives of this list before posting, as this is a common problem: http://www.nabble.com/msLoadMap()-Unable-to-access-file-td17262195.html#a17286109 (see my response in that thread). thank you.
-- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
