<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello.<br>
<br>
I try to run an example i found in B. Kropla's book (Beginning
MapServer - Open Source GIS Development) in windows XP.<br>
I create a hello.html template which is placed in htdocs folder of the
Apache server.<br>
Also, hello.map is placed in htdocs folder as well.<br>
The contents of hello.html are:<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>
                    &lt;form method=POST
action="\cgi-bin\mapserv.exe"&gt;<br>
                              &lt;input type="submit" value="Click
Me"&gt;<br>
                              &lt;input type="hidden" name="map"
value="hello.map"&gt;<br>
                              &lt;input type="hidden"
name="map_web_imagepath" value="c:\ms4w\Apache\htdocs\tmp\"&gt;<br>
                    &lt;/form&gt;<br>
                    &lt;IMG SRC="[img]" width=400 height=300
border=0&gt;<br>
&lt;/body&gt;<br>
&lt;/html&gt;<br>
<br>
The conents of hello.map are:<br>
<br>
#This is our "Hello World" mapfile<br>
NAME "Hello_world"<br>
SIZE 400 300<br>
IMAGECOLOR 249 245 186<br>
IMAGETYPE png<br>
EXTENT -1.00 -1.00 1.00 1.00<br>
WEB<br>
    TEMPLATE "c:\ms4w\Apache\htdocs\hello.html"<br>
    IMAGEPATH "c:\ms4w\Apache\htdocs\tmp\"<br>
    IMAGEURL "\tmp\"<br>
END<br>
LAYER<br>
    STATUS default<br>
    TYPE point<br>
    FEATURE<br>
        POINTS 0.0 0.0 END<br>
        TEXT "Hello World"<br>
    END<br>
    <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>
When i click on "Click me" button i get the message msLoadMap() Unable
to access file hello.map.<br>
Furthemore,when i move hello.map in cgi-bin folder of the Apache server
and change the corresponding line in hello.html<br>
to  &lt;input type="hidden" name="map" value="cgi-bin\hello.map"&gt; <br>
i get the message <br>
<pre>loadWeb(): Unknown identifier. Parsing error near (C):(line 1)


Furthemore,when i open hello.html instead of getting just the click-me button i get the following:



</pre>
<form method="post" action="\lang1033\f1" \\\lang1032\f0=""
 cgi-bin\lang1033\f1\\\lang1032\f0="" mapserv.exe="">\par
\lang1033\f1 \lang1032\f0 <input value="Click Me" type="submit">\par
\lang1033\f1 \lang1032\f0 <input name="map"
 value="\lang1033\f1 cgi-bin\\\lang1032\f0 hello.map" type="hidden">\par
\lang1033\f1 \lang1032\f0 <input name="map_web_imagepath"
 \lang1033\f1=""
 value="\lang1033\f1 c\lang1032\f0 :\\ms4w\\Apache\\htdocs\\tmp\\\lang1033\f1 "
 \lang1032\f0="" type="hidden">\par
\lang1033\f1 \lang1032\f0 </form>
\par
\lang1033\f1 \lang1032\f0 <img
 src="cid:part1.06040803.00090108@gmail.com" border="0" height="300"
 width="400">\par
\par
\par
}
<pre> </pre>
<br>
I have read other mail on the same problem but i could not figure it
out.<br>
Thank you.<br>
<br>
Nikos Papadakis<br>
Department of Computer &amp; Communications Engineering<br>
Univercity of Thessaly.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</body>
</html>