There were changes in MapServer 5.0 that affects the way certain CGI variables are passed, which must be affecting the example you are trying.&nbsp; For a working example in MS4W of CGI MapServer, use the &quot;MapServer Itasca Demo Application&quot; (<a href="http://www.maptools.org/ms4w/index.phtml?page=downloads.html">http://www.maptools.org/ms4w/index.phtml?page=downloads.html</a>).<br>
<br>-jeff<br><br><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>I have just started my exploration in Mapserver on Windows platform with MS4W package. I am using Bil Kropla&#39;s Mapserver book. When I worked out the first example (of chapter 2), a simple example using mapserver in CGI-BIN mode, I get the following error<br>
 &nbsp; loadWeb(): Unknown identifier. Parsing error near (c):(line 1)<br>I tried changing the path information (TEMPLATE, IMAGE PATH), other parameters to ensure the simple &#39;Hello World&#39; example map gets displayed, but I could not go further.<br>
<br>I am producing the source code below of the two files.<br><br>File: hello.map<br>--------------------<br># This is our &quot;Hello World&quot; mapfile<br>NAME &quot;Hello World&quot;<br>SIZE 400 300<br>IMAGECOLOR 249 245 186<br>
IMAGETYPE png<br>EXTENT -1.0 -1.0 1.0 1.0<br>WEB<br> &nbsp; &nbsp; TEMPLATE &quot;c:/ms4w/apache/htdocs/hello.html&quot;<br> &nbsp; &nbsp; IMAGEPATH &quot;c:/ms4w/apache/htdocs/tmp/&quot;<br> &nbsp; &nbsp; IMAGEURL &quot;/tmp/&quot;<br>END<br>LAYER<br>
 &nbsp; &nbsp; STATUS default<br> &nbsp; &nbsp; TYPE point<br> &nbsp; &nbsp; FEATURE<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;POINTS &nbsp;0.00 0.00 END<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TEXT &quot;Hello World&quot;<br> &nbsp; &nbsp; END # end feature<br> &nbsp; &nbsp; CLASS<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;STYLE<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLOR 255 0 0<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LABEL<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TYPE bitmap<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END<br> &nbsp; &nbsp; END<br>END<br>END<br><br>File: Hello.html<br>---------------------<br>&lt;html&gt;<br>&lt;head&gt; &lt;title&gt;MapServer Hello World&lt;/title&gt;&lt;/head&gt;<br>
&lt;body&gt;<br> &nbsp; &nbsp;&lt;form method=POST action=&quot;../cgi-bin/mapserv.exe&quot;&gt;<br> &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type=&quot;submit&quot; value=&quot;Click Me&quot;&gt;<br> &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type=&quot;hidden&quot; name=&quot;map&quot; value=&quot;c:/ms4w/apache/htdocs/hello.map&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type=&quot;hidden&quot; name=&quot;map_web_imagepath&quot; value=&quot;c:/ms4w/apache/htdocs/tmp/&quot;&gt;<br> &nbsp; &nbsp;&lt;/form&gt;<br> &nbsp; &nbsp;&lt;IMG SRC=&quot;[img]&quot; width=400 height=300 border=0&gt;<br>
&lt;/body&gt;<br>&lt;/html&gt;<br><br>Would appreciate any help on this.<br><br>Thanks in advance.<br>Suresh<br><br></blockquote></div><br>