<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=751535016-20052008>For
testing map files, I like to go the simplest route and use mode=map.
</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=751535016-20052008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=751535016-20052008>I took
the map file text below (not including "test.map" because that would break the
file) and I pasted it into a new map file. </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=751535016-20052008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=751535016-20052008>I
called it using the URL: <A
href="http://localhost/cgi-bin/mapserv.exe?mode=map&map=d:\test.map">http://localhost/cgi-bin/mapserv.exe?mode=map&map=d:\test.map</A> </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=751535016-20052008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=751535016-20052008>and it
returned a yellow rectangle with "Hello World" and a one pixel red dot in the
middle of it. </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=751535016-20052008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=751535016-20052008>There
appears to be nothing wrong with your map file. I am running MS4W
2.2.6</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=751535016-20052008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=751535016-20052008>David.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=751535016-20052008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=751535016-20052008>PS. This line from your html page looks a little
funky:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=751535016-20052008><FONT
face="Times New Roman" color=#000000 size=3> <input type="hidden"
name="map_web" value="imagepath C:\ms4w\Apache\htdocs\tmp\ imageurl
/tmp/"></FONT><BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=751535016-20052008> </DIV></SPAN></FONT>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <B>On Behalf Of
</B>nipapada@gmail.com<BR><B>Sent:</B> Tuesday, May 20, 2008 11:41
AM<BR><B>To:</B> mapserver-users@lists.osgeo.org<BR><B>Subject:</B>
[mapserver-users] loadWeb(): Unknown identifier. Parsing error near(:):(line
1)<BR><BR></FONT></DIV>Unfortunately the error insists.<BR>I have tried every
advice you gave me but stiil nothing.<BR>All the modifications i did
are:<BR>1)Check the orientation of slashes and i actually tried every possible
orientation.<BR>2)Placed the MAP keyword in the first line of .map
file.<BR>3)Tried an older version of MapServer (although there is nothing
different according to the site...).<BR><BR>Perhaps i should try it on
linux?<BR>Does it make any difference at
all?<BR><BR><BIG><B>test.map</B></BIG><BR><BR>MAP<BR> NAME
"TEST!!!"<BR> SIZE 400 300<BR> IMAGECOLOR
249 245 186<BR> IMAGETYPE png<BR> EXTENT
-1.00 -1.00 1.00 1.00<BR><BR>
WEB<BR> TEMPLATE
"C:\ms4w\Apache\htdocs\test.html"<BR>
IMAGEPATH
"C:\ms4w\Apache\htdocs\tmp"<BR>
IMAGEURL "/tmp/"<BR> END<BR><BR>
LAYER<BR> STATUS
default<BR> TYPE
point<BR>
FEATURE<BR>
POINTS 0.0 0.0
END<BR>
TEXT "Hello
World"<BR>
END<BR>
CLASS<BR>
STYLE<BR>
COLOR 255 0
0<BR>
END<BR>
LABEL<BR>
TYPE
bitmap<BR>
END<BR>
END<BR>
END<BR>END<BR><BR><BR><BR><BR><BR><BR><BR><BR><BIG><B>test.html<BR><BR></B><SMALL><html><BR><head><title>MapServer
Hello World</title></head><BR><BR><body><BR><BR><BR><form
method=POST action="/cgi-bin/mapserv.exe"><BR> <input
type="submit" value="Click"><BR> <input type="hidden" name="MAP"
value="C:\ms4w\Apache\htdocs\test.map"><BR> <input type="hidden"
name="map_web" value="imagepath C:\ms4w\Apache\htdocs\tmp\ imageurl
/tmp/"><BR></form><BR><IMG SRC="[img]" width=400 height=300
border=0><BR><BR><BR></body><BR></html></SMALL><BR><B><BR></BLOCKQUOTE></B></BIG></BODY></HTML>