<!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.&nbsp; 
</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=751535016-20052008></SPAN></FONT>&nbsp;</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.&nbsp; </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=751535016-20052008></SPAN></FONT>&nbsp;</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&amp;map=d:\test.map">http://localhost/cgi-bin/mapserv.exe?mode=map&amp;map=d:\test.map</A>&nbsp;</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=751535016-20052008></SPAN></FONT>&nbsp;</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.&nbsp; </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=751535016-20052008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=751535016-20052008>There 
appears to be nothing wrong with your map file.&nbsp; I am running MS4W 
2.2.6</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=751535016-20052008></SPAN></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=751535016-20052008>PS.&nbsp; 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>&nbsp;&lt;input type="hidden" 
name="map_web" value="imagepath C:\ms4w\Apache\htdocs\tmp\ imageurl 
/tmp/"&gt;</FONT><BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=751535016-20052008>&nbsp;</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>&nbsp;&nbsp;&nbsp; NAME 
  "TEST!!!"<BR>&nbsp;&nbsp;&nbsp; SIZE 400 300<BR>&nbsp;&nbsp;&nbsp; IMAGECOLOR 
  249 245 186<BR>&nbsp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BR><BR>&lt;body&gt;<BR><BR><BR>&lt;form 
  method=POST action="/cgi-bin/mapserv.exe"&gt;<BR>&nbsp; &lt;input 
  type="submit" value="Click"&gt;<BR>&nbsp; &lt;input type="hidden" name="MAP" 
  value="C:\ms4w\Apache\htdocs\test.map"&gt;<BR>&nbsp; &lt;input type="hidden" 
  name="map_web" value="imagepath C:\ms4w\Apache\htdocs\tmp\ imageurl 
  /tmp/"&gt;<BR>&lt;/form&gt;<BR>&lt;IMG SRC="[img]" width=400 height=300 
  border=0&gt;<BR><BR><BR>&lt;/body&gt;<BR>&lt;/html&gt;</SMALL><BR><B><BR></BLOCKQUOTE></B></BIG></BODY></HTML>